chore: update sla-briefing-desk — latest live state backup 2026-04-14

This commit is contained in:
2026-04-14 22:39:37 +01:00
parent 2305cdf438
commit 9e126055b5
+2
View File
@@ -113,6 +113,7 @@ class SlaBriefingDeskApp extends FormApplication {
await setDraft(draft); await setDraft(draft);
const journal = await JournalEntry.create({ const journal = await JournalEntry.create({
name: draft.jobName || "SLA Brief", name: draft.jobName || "SLA Brief",
ownership: { default: CONST.DOCUMENT_OWNERSHIP_LEVELS.NONE },
pages: [ pages: [
{ {
name: "Briefing", name: "Briefing",
@@ -141,6 +142,7 @@ class SlaBriefingDeskApp extends FormApplication {
} }
function installJournalButton(app, html) { function installJournalButton(app, html) {
if (!game.user?.isGM) return;
const root = getHtmlRoot(html); const root = getHtmlRoot(html);
const header = root?.querySelector(".directory-header .header-actions, .directory-header .action-buttons"); const header = root?.querySelector(".directory-header .header-actions, .directory-header .action-buttons");
if (!header || header.querySelector(".sla-briefing-desk-open")) return; if (!header || header.querySelector(".sla-briefing-desk-open")) return;