translations and pickers
This commit is contained in:
+4
-1
@@ -26,6 +26,9 @@ const lineLinksToggle = document.querySelector("#public-line-links-toggle");
|
||||
const fullWidthToggle = document.querySelector("#public-full-width-toggle");
|
||||
const fullWidthStorageKey = "rustpad:public-full-width";
|
||||
const passwordDialog = document.querySelector("#public-password-dialog"), passwordForm = document.querySelector("#public-password-form"), passwordInput = document.querySelector("#public-password"), passwordError = document.querySelector("#public-password-error");
|
||||
const publicTitle = document.querySelector("#public-title");
|
||||
publicTitle?.removeAttribute("data-i18n");
|
||||
if (publicTitle) publicTitle.textContent = t("common.loading", {}, "Loading…");
|
||||
let pagePassword = "";
|
||||
let mermaidRenderVersion = 0;
|
||||
let publicAnchorSettleCleanup = null;
|
||||
@@ -179,7 +182,7 @@ async function initialize() {
|
||||
const page = await api(`/api/public/${encodeURIComponent(token)}`, { headers: pageHeaders() });
|
||||
if (passwordDialog.open) passwordDialog.close();
|
||||
passwordError.textContent = "";
|
||||
document.querySelector("#public-title").textContent = page.title;
|
||||
publicTitle.textContent = page.title;
|
||||
document.querySelector("#public-meta").textContent = page.allow_task_updates
|
||||
? t("public.updatedTasks", { date: formatDateTime(page.updated_at) }, `Updated: ${formatDateTime(page.updated_at)} · tasks can be updated`)
|
||||
: t("public.updated", { date: formatDateTime(page.updated_at) }, `Updated: ${formatDateTime(page.updated_at)}`);
|
||||
|
||||
Reference in New Issue
Block a user