summaryrefslogtreecommitdiff
path: root/resources/js/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'resources/js/ui.js')
-rw-r--r--resources/js/ui.js7
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;
},