Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4281c4dde | ||
|
|
9e126055b5 |
+2
-2
@@ -5,8 +5,8 @@
|
||||
"version": "0.1.0",
|
||||
"compatibility": {
|
||||
"minimum": "13",
|
||||
"verified": "13.350",
|
||||
"maximum": "13"
|
||||
"verified": "14",
|
||||
"maximum": "14"
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
|
||||
@@ -113,6 +113,7 @@ class SlaBriefingDeskApp extends FormApplication {
|
||||
await setDraft(draft);
|
||||
const journal = await JournalEntry.create({
|
||||
name: draft.jobName || "SLA Brief",
|
||||
ownership: { default: CONST.DOCUMENT_OWNERSHIP_LEVELS.NONE },
|
||||
pages: [
|
||||
{
|
||||
name: "Briefing",
|
||||
@@ -141,6 +142,7 @@ class SlaBriefingDeskApp extends FormApplication {
|
||||
}
|
||||
|
||||
function installJournalButton(app, html) {
|
||||
if (!game.user?.isGM) return;
|
||||
const root = getHtmlRoot(html);
|
||||
const header = root?.querySelector(".directory-header .header-actions, .directory-header .action-buttons");
|
||||
if (!header || header.querySelector(".sla-briefing-desk-open")) return;
|
||||
|
||||
Reference in New Issue
Block a user