Skip to content

Commit

Permalink
updates refreshSnaps location in bulkdestroy
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanKeo45 committed May 21, 2024
1 parent a8079c8 commit 58bdab4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion zfs/public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"zfs": {
"label": "45Drives ZFS",
"path": "index.html",
"order": 113
"order": 111
}
}
}
17 changes: 3 additions & 14 deletions zfs/src/components/snapshots/SnapshotsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -359,18 +359,6 @@ watch(confirmBulkDestroy, async (newVal, oldVal) => {
console.log('now destroying in bulk:', selectedForDestroy.value);
try {
// selectedForDestroy.value.forEach(async snapshot => {
// console.log('currently destroying:', snapshot);
// const output = await destroySnapshot(snapshot, false, false);
// if (output == null) {
// operationRunning.value = false;
// confirmBulkDestroy.value = false;
// failedToDestroySnaps.push(snapshot);
// } else {
// destroyedSnaps.push(snapshot);
// }
// });
for (const snapshot of selectedForDestroy.value) {
console.log('currently destroying:', snapshot);
const output = await destroySnapshot(snapshot, false, false);
Expand All @@ -384,7 +372,7 @@ watch(confirmBulkDestroy, async (newVal, oldVal) => {
console.log('destroyed:', selectedForDestroy.value);
await exitBulkDestroyMode();
await refreshSnaps();
confirmBulkDestroy.value = false;
operationRunning.value = false;
Expand All @@ -395,7 +383,8 @@ watch(confirmBulkDestroy, async (newVal, oldVal) => {
notifications.value.constructNotification('Snapshot Destroyed', `The folllowing snapshots were destroyed: \n${destroyedSnaps.join(', ')}`, 'success');
}
showDestroyBulkSnapshotModal.value = false;
await refreshSnaps();
} catch (error) {
console.log(error);
operationRunning.value = false;
Expand Down

0 comments on commit 58bdab4

Please sign in to comment.