Unify organizer navigation and add personal widget dashboard
This commit is contained in:
1 parent
a9249009f0
commit
6ba30bc9f4
44 files changed
+843
-54
No files matched your search
+6
-14
@@ -1954,13 +1954,11 @@
|
||||
"checkbox",
|
||||
enabled.some((e) => e.id === c.id),
|
||||
);
|
||||
if (actor)
|
||||
field(
|
||||
t("自分のデフォルトとして保存", "Save as my defaults"),
|
||||
"save-defaults",
|
||||
"checkbox",
|
||||
false,
|
||||
);
|
||||
if (actor) {
|
||||
const settingsLink=node('a',t('既定のカレンダーは個人設定で変更','Change default calendars in personal settings'));
|
||||
settingsLink.href='/-/sys/config?panel=organizer#organizer-calendar-defaults';
|
||||
$("calendar-fields").append(settingsLink);
|
||||
}
|
||||
$("calendar-fields").append(
|
||||
node(
|
||||
"p",
|
||||
@@ -1980,13 +1978,7 @@
|
||||
const base = ["detail", "edit", "new"].includes(route().view)
|
||||
? "/v/plan"
|
||||
: location.pathname;
|
||||
if (form.has("save-defaults")) {
|
||||
await api("preferences", "PUT", {
|
||||
calendars: selected.map((c) => c.id),
|
||||
});
|
||||
navigate(base);
|
||||
} else
|
||||
navigate(
|
||||
navigate(
|
||||
base +
|
||||
"?calendar=" +
|
||||
selected.map((c) => encodeURIComponent(c.pretty_name)).join(","),
|
||||
|
||||
Reference in new issue
Block a user