mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-13 20:06:59 +01:00
fix (admin): broken link with locale package
This commit is contained in:
parent
76b44f3c18
commit
a0cb495ce5
2 changed files with 3 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ import { qs, qsa } from "../../lib/dom.js";
|
|||
import { ApplicationError } from "../../lib/error.js";
|
||||
import { formTmpl } from "../../components/form.js";
|
||||
import { generateSkeleton } from "../../components/skeleton.js";
|
||||
import ctrlError from "../ctrl_error.js";
|
||||
|
||||
import {
|
||||
getState,
|
||||
|
|
@ -266,4 +267,5 @@ export default async function(render) {
|
|||
const saveMiddleware = () => rxjs.pipe(
|
||||
rxjs.mergeMap(() => getState()),
|
||||
saveConfig(),
|
||||
rxjs.catchError(ctrlError()),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ import { createElement } from "../../lib/skeleton/index.js";
|
|||
import rxjs, { effect, applyMutation } from "../../lib/rx.js";
|
||||
import { qsa } from "../../lib/dom.js";
|
||||
import { createForm, mutateForm } from "../../lib/form.js";
|
||||
import t from "../../lib/locales.js";
|
||||
import { generateSkeleton } from "../../components/skeleton.js";
|
||||
import notification from "../../components/notification.js";
|
||||
import { formTmpl } from "../../components/form.js";
|
||||
|
|
@ -54,7 +53,7 @@ export default function(render) {
|
|||
)),
|
||||
saveConfig(),
|
||||
rxjs.catchError((err) => {
|
||||
notification.error((err && err.message) || t("Oops"));
|
||||
notification.error((err && err.message) || "Oops");
|
||||
return rxjs.EMPTY;
|
||||
}),
|
||||
));
|
||||
|
|
|
|||
Loading…
Reference in a new issue