mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-27 09:48:21 +01:00
fix setting save bug
This commit is contained in:
parent
e764cef4ac
commit
ebb74ebcbc
@ -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.__());
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user