Fixes option of not displaying certain dialogs again not appearing.

This commit is contained in:
mateuswetah 2020-04-01 14:35:17 -03:00
parent 7d8641fd55
commit 5010c6ab45
2 changed files with 2 additions and 2 deletions

View File

@ -1187,7 +1187,7 @@
this.hasAnOpenModal = false; this.hasAnOpenModal = false;
}, },
hideCancel: true, hideCancel: true,
showNeverShowAgainOption: offerCheckbox && tainacan_plugin.user_caps != undefined && tainacan_plugin.user_caps.length != undefined && tainacan_plugin.user_caps.length > 0, showNeverShowAgainOption: offerCheckbox && tainacan_plugin.user_caps != undefined && Object.keys(tainacan_plugin.user_caps).length != undefined && Object.keys(tainacan_plugin.user_caps).length > 0,
messageKeyForUserPrefs: 'ItemsHiddenDueSorting' messageKeyForUserPrefs: 'ItemsHiddenDueSorting'
}, },
trapFocus: true trapFocus: true

View File

@ -1045,7 +1045,7 @@
this.hasAnOpenModal = false; this.hasAnOpenModal = false;
}, },
hideCancel: true, hideCancel: true,
showNeverShowAgainOption: offerCheckbox && tainacan_plugin.user_caps != undefined && tainacan_plugin.user_caps.length != undefined && tainacan_plugin.user_caps.length > 0, showNeverShowAgainOption: offerCheckbox && tainacan_plugin.user_caps != undefined && Object.keys(tainacan_plugin.user_caps).length != undefined && Object.keys(tainacan_plugin.user_caps).length > 0,
messageKeyForUserPrefs: 'ItemsHiddenDueSorting' messageKeyForUserPrefs: 'ItemsHiddenDueSorting'
}, },
trapFocus: true trapFocus: true