collavre_github 0.6.0 → 0.6.1
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_github.js +8 -7
- data/db/seeds.rb +1 -1
- data/lib/collavre_github/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: 82dd93990d2dc692575a20c51b26144b69c9af885b36e60b4868fa7559c76363
|
|
4
|
+
data.tar.gz: b929db48adbbdcb8c56d8cb72efb171bac40cf852721aa98927af101ee41d82b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2d9681cdc7f1872a0b821b1288886c575207d3370c373d062f630ed23015e5fef8ad5c8c76b6e48ecbb7fd7c6dde99788ff3b5c68bbd690a2bcd4b7ed6c8d6e
|
|
7
|
+
data.tar.gz: 67382060fae2662cee2481f0cef2ae6fb979f4b4653f3ef63db141cdfb95d35347f845259c9ca205b9e90c81efaac419470b75e48969579abac86bf5e0fdaa01
|
|
@@ -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 githubIntegrationInitialized = false;
|
|
4
5
|
|
|
@@ -513,7 +514,7 @@ if (!githubIntegrationInitialized) {
|
|
|
513
514
|
|
|
514
515
|
|
|
515
516
|
updateSummary();
|
|
516
|
-
|
|
517
|
+
alertDialog(modal.dataset.successMessage);
|
|
517
518
|
})
|
|
518
519
|
.catch(function () {
|
|
519
520
|
showError('연동 정보를 저장하지 못했습니다.');
|
|
@@ -523,7 +524,7 @@ if (!githubIntegrationInitialized) {
|
|
|
523
524
|
openBtn.addEventListener('click', function () {
|
|
524
525
|
creativeId = openBtn.dataset.creativeId;
|
|
525
526
|
if (!creativeId) {
|
|
526
|
-
|
|
527
|
+
alertDialog(modal.dataset.noCreative);
|
|
527
528
|
return;
|
|
528
529
|
}
|
|
529
530
|
resetWizard();
|
|
@@ -598,9 +599,9 @@ if (!githubIntegrationInitialized) {
|
|
|
598
599
|
});
|
|
599
600
|
});
|
|
600
601
|
|
|
601
|
-
deleteBtn?.addEventListener('click', function () {
|
|
602
|
+
deleteBtn?.addEventListener('click', async function () {
|
|
602
603
|
if (!creativeId) {
|
|
603
|
-
|
|
604
|
+
alertDialog(modal.dataset.noCreative);
|
|
604
605
|
return;
|
|
605
606
|
}
|
|
606
607
|
clearError();
|
|
@@ -609,7 +610,7 @@ if (!githubIntegrationInitialized) {
|
|
|
609
610
|
showError(deleteSelectWarning);
|
|
610
611
|
return;
|
|
611
612
|
}
|
|
612
|
-
if (!
|
|
613
|
+
if (!(await confirmDialog(deleteConfirm, { danger: true }))) return;
|
|
613
614
|
|
|
614
615
|
fetch(`/github/creatives/${creativeId}/integration`, {
|
|
615
616
|
method: 'DELETE',
|
|
@@ -648,7 +649,7 @@ if (!githubIntegrationInitialized) {
|
|
|
648
649
|
});
|
|
649
650
|
});
|
|
650
651
|
|
|
651
|
-
resyncBtn?.addEventListener('click', function () {
|
|
652
|
+
resyncBtn?.addEventListener('click', async function () {
|
|
652
653
|
if (!creativeId) return;
|
|
653
654
|
clearError();
|
|
654
655
|
const checkboxes = existingList ? existingList.querySelectorAll('.github-existing-repo-checkbox:checked') : [];
|
|
@@ -657,7 +658,7 @@ if (!githubIntegrationInitialized) {
|
|
|
657
658
|
showError(resyncSelectWarning);
|
|
658
659
|
return;
|
|
659
660
|
}
|
|
660
|
-
if (!
|
|
661
|
+
if (!(await confirmDialog(resyncConfirm))) return;
|
|
661
662
|
|
|
662
663
|
resyncBtn.disabled = true;
|
|
663
664
|
let completed = 0;
|
data/db/seeds.rb
CHANGED