collavre_notion 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/javascript/collavre_notion.js +4 -3
- data/lib/collavre_notion/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 911a0816f31071621d67860607d4c8351cf3713fd53fde43719e822b8fa06cfb
|
|
4
|
+
data.tar.gz: 69c180ccdd9b7de6aa0096d34a1570167a092151dcdffccf8d903f6ac682f877
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 586a45e62d1009bb7feee452d1699bc73148982ff3bc19a6bc44bfed11e481ecc69ac0645e86e9c7e46d8f89c9c4e62a9b72514e4479869ebd80115390940eac
|
|
7
|
+
data.tar.gz: 58b078595daad1d91f27863ae8f57fbc9c31ce1ca8118ae14379d83a67ec5157f3fe260d2b88dbb0db4e5beb35aea44ef816a30bfa05cb460c8429bcf8492e7e
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { csrfToken, showError, clearError, updateStepVisibility, openOAuthPopup, fetchWithCsrf, setupModalClose } from 'collavre/modules/integration_wizard';
|
|
2
|
+
import { alertDialog, confirmDialog } from 'collavre/lib/utils/dialog';
|
|
2
3
|
|
|
3
4
|
let notionIntegrationInitialized = false;
|
|
4
5
|
|
|
@@ -337,8 +338,8 @@ if (!notionIntegrationInitialized) {
|
|
|
337
338
|
});
|
|
338
339
|
}
|
|
339
340
|
|
|
340
|
-
function performDelete() {
|
|
341
|
-
if (!
|
|
341
|
+
async function performDelete() {
|
|
342
|
+
if (!(await confirmDialog(modal.dataset.deleteConfirm))) return;
|
|
342
343
|
|
|
343
344
|
deleteBtn.disabled = true;
|
|
344
345
|
deleteBtn.textContent = modal.dataset.removing;
|
|
@@ -372,7 +373,7 @@ if (!notionIntegrationInitialized) {
|
|
|
372
373
|
openBtn.addEventListener('click', function () {
|
|
373
374
|
creativeId = this.dataset.creativeId;
|
|
374
375
|
if (!creativeId) {
|
|
375
|
-
|
|
376
|
+
alertDialog(modal.dataset.noCreative);
|
|
376
377
|
return;
|
|
377
378
|
}
|
|
378
379
|
modal.style.display = 'flex';
|