diff --git a/module.json b/module.json index a61311a..0cb7d2b 100644 --- a/module.json +++ b/module.json @@ -1,7 +1,7 @@ { "id": "dh-improved-countdowns", "title": "Improved Countdowns", - "version": "1.2.0", + "version": "1.2.1", "compatibility": { "minimum": "13", "verified": "13" @@ -40,5 +40,5 @@ "description": "A modern, draggable countdown tracker for the Daggerheart system.", "url": "https://github.com/cptn-cosmo/dh-improved-countdowns", "manifest": "https://github.com/cptn-cosmo/dh-improved-countdowns/releases/latest/download/module.json", - "download": "https://github.com/cptn-cosmo/dh-improved-countdowns/releases/download/1.2.0/dh-improved-countdowns.zip" + "download": "https://github.com/cptn-cosmo/dh-improved-countdowns/releases/download/1.2.1/dh-improved-countdowns.zip" } \ No newline at end of file diff --git a/scripts/countdown-app.js b/scripts/countdown-app.js index 39d90d0..9997995 100644 --- a/scripts/countdown-app.js +++ b/scripts/countdown-app.js @@ -99,8 +99,11 @@ export class CountdownTrackerApp extends HandlebarsApplicationMixin(ApplicationV } } + const hasCountdowns = Object.keys(countdowns).length > 0; + return { countdowns, + hasCountdowns, isGM, isMinimized, isLocked, diff --git a/templates/countdown-tracker.hbs b/templates/countdown-tracker.hbs index dffa10e..127c454 100644 --- a/templates/countdown-tracker.hbs +++ b/templates/countdown-tracker.hbs @@ -5,8 +5,9 @@
{{#if isGM}} - - + + {{/if}}