File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed 
web/components/Notifications Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,22 @@ const { mutate: archiveAll, loading: loadingArchiveAll } = useMutation(archiveAl
99const mutate : deleteAll, loading : loadingDeleteAll } =  useMutation (deleteAllNotifications );
1010const =  useTeleport ();
1111const =  ref <Importance  |  undefined >(undefined );
12+ 
13+ const =  async  () =>  {
14+   if  ( 
15+     confirm (' This will archive all notifications on your Unraid server. Continue?'  
16+   ) { 
17+     await  deleteAll (); 
18+   } 
19+ }; 
20+ 
21+ const =  async  () =>  {
22+   if  ( 
23+     confirm (' This will permanently delete all notifications currently on your Unraid server. Continue?'  
24+   ) { 
25+     await  deleteAll (); 
26+   } 
27+ }; 
1228script >
1329
1430<template >
@@ -45,7 +61,7 @@ const importance = ref<Importance | undefined>(undefined);
4561                variant =" link" 
4662                size =" sm" 
4763                class =" text-muted-foreground text-base p-0" 
48-                 @click =" archiveAll " 
64+                 @click =" confimAndArchiveAll " 
4965              >
5066                Archive All
5167              </Button >
@@ -56,7 +72,7 @@ const importance = ref<Importance | undefined>(undefined);
5672                variant =" link" 
5773                size =" sm" 
5874                class =" text-muted-foreground text-base p-0" 
59-                 @click =" deleteAll " 
75+                 @click =" confimAndDeleteAll " 
6076              >
6177                Delete All
6278              </Button >
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments