@@ -10,6 +10,7 @@ import { useWizard } from "@/components/Common/Wizard/useWizard";
1010import { HistoryFilters } from " @/components/History/HistoryFilters" ;
1111import { bulkStorageExecute , bulkStoragePreview } from " @/components/History/model/queries" ;
1212import { QuotaSourceUsageProvider } from " @/components/User/DiskUsage/Quota/QuotaUsageProvider.js" ;
13+ import { useConfig } from " @/composables/config" ;
1314import { Toast } from " @/composables/toast" ;
1415import { useObjectStoreStore } from " @/stores/objectStoreStore" ;
1516import { useStorageOperationsStore } from " @/stores/storageOperationsStore" ;
@@ -40,6 +41,7 @@ const emit = defineEmits<{
4041const objectStoreStore = useObjectStoreStore ();
4142const storageOperationsStore = useStorageOperationsStore ();
4243const { loading : objectStoresLoading, loadErrorMessage } = storeToRefs (objectStoreStore );
44+ const { config, isConfigLoaded } = useConfig (true );
4345
4446const selectedTargetObjectStoreId = ref <string | null >(null );
4547const storagePreview = ref <StorageOperationPreviewResponse | null >(null );
@@ -49,6 +51,11 @@ const previewError = ref<string | null>(null);
4951const executionError = ref <string | null >(null );
5052const notifyOnCompletion = ref (true );
5153
54+ const notificationSystemEnabled = computed (
55+ () => isConfigLoaded .value && config .value ?.enable_notification_system === true ,
56+ );
57+ const shouldNotifyOnCompletion = computed (() => notifyOnCompletion .value && notificationSystemEnabled .value );
58+
5259const wizard = useWizard ({
5360 configure: {
5461 label: " Destination" ,
@@ -181,7 +188,7 @@ async function executeStorageOperation() {
181188 props .history ,
182189 snapshotId ,
183190 undefined ,
184- notifyOnCompletion .value ,
191+ shouldNotifyOnCompletion .value ,
185192 );
186193 storageOperationsStore .startRun (toTrackedStorageRun (props .history .id , executeResponse .run ));
187194
@@ -284,7 +291,7 @@ function getExplicitlySelectedItems(): HistoryContentItemBase[] {
284291 </Multiselect >
285292 </div >
286293
287- <div class =" mb-2" >
294+ <div v-if = " notificationSystemEnabled " class =" mb-2" >
288295 <label class =" d-flex align-items-center mb-0" >
289296 <input v-model =" notifyOnCompletion" type =" checkbox" class =" mr-2" />
290297 Notify me when the storage operation completes
0 commit comments