mirror of
				https://github.com/lxsang/antos-frontend.git
				synced 2025-10-31 02:15:47 +01:00 
			
		
		
		
	fix setting save bug
This commit is contained in:
		| @@ -330,12 +330,18 @@ namespace OS { | |||||||
|                     }); |                     }); | ||||||
|                     // build up the category menu |                     // build up the category menu | ||||||
|                     const cat_list_data = []; |                     const cat_list_data = []; | ||||||
|                     cat_list_data.push(OS.setting.applications.categories[0]); |                     cat_list_data.push({ | ||||||
|  |                         text: "__(All)", | ||||||
|  |                         iconclass: "bi bi-gear-wide" | ||||||
|  |                     }); | ||||||
|                     (OS.setting.applications.categories as Array<GenericObject<any>>) |                     (OS.setting.applications.categories as Array<GenericObject<any>>) | ||||||
|                         .forEach((v) =>{ |                         .forEach((v) =>{ | ||||||
|                             if(catlist.has(v.text.__())) |                             if(catlist.has(v.text.__())) | ||||||
|                             { |                             { | ||||||
|                                 cat_list_data.push(v); |                                 cat_list_data.push({ | ||||||
|  |                                     text: v.text, | ||||||
|  |                                     iconclass: v.iconclass | ||||||
|  |                                 }); | ||||||
|                                 catlist.delete(v.text.__()); |                                 catlist.delete(v.text.__()); | ||||||
|                             } |                             } | ||||||
|                         }) |                         }) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user