diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-09-02 14:59:09 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-09-02 14:59:09 +0200 |
commit | 2030caa0c85102b1cf6131dd9eefef4a347cda42 (patch) | |
tree | 9188abac0d7b7730ded1e8e154c3f7c589f785cf /resources/js/ui.js | |
parent | 1d29ee6d87d3794a9319bca5bf36afdfe176072c (diff) |
translations and story
Diffstat (limited to 'resources/js/ui.js')
-rw-r--r-- | resources/js/ui.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/resources/js/ui.js b/resources/js/ui.js index 04186f5..ede8a1f 100644 --- a/resources/js/ui.js +++ b/resources/js/ui.js @@ -757,9 +757,10 @@ const UI = { } }))); - template.querySelectorAll('[data-interactable="true"]').forEach((node) => { + template.querySelectorAll('[data-interactable="true"]').forEach(async (node) => { if (node.dataset.story) { - if (node.dataset.storyOnce && Memory.state.storyProgress[node.dataset.story]) { + const story = await fetchStory(node.dataset.story); + if (!story.canTriggerMultipleTimes && Memory.state.storyProgress[node.dataset.story]) { node.dataset.interactable = false; return; } @@ -1932,7 +1933,7 @@ const UI = { * @returns {HTMLElement} */ createStoryPopup () { - const popup = UI.createPopup(); + const popup = UI.createPopup({ isClosable: false }); return popup; }, |