temporarily hiding sort menu for the desktop

This commit is contained in:
Bao Nguyen
2023-02-18 07:16:31 +07:00
parent 0e64f90d65
commit 7d34b1495b

View File

@@ -22,36 +22,36 @@ export let make = ({type, originator}) => {
required_height: 27*6 + 20, required_height: 27*6 + 20,
menu: [ menu: [
[ [
{ // {
name: 'Sort By', // name: 'Sort By',
items: [ // items: [
...sort_menu_items.map(item => { // ...sort_menu_items.map(item => {
return { // return {
...item, // ...item,
check: item.value == get(hardDrive)[originator.id].sort_option, // check: item.value == get(hardDrive)[originator.id].sort_option,
action: () => { // action: () => {
hardDrive.update(data => { // hardDrive.update(data => {
data[originator.id].sort_option = item.value; // data[originator.id].sort_option = item.value;
return data; // return data;
}) // })
} // }
} // }
}), // }),
null, // null,
...sort_order_menu_items.map(item => { // ...sort_order_menu_items.map(item => {
return { // return {
...item, // ...item,
check: item.value == get(hardDrive)[originator.id].sort_order, // check: item.value == get(hardDrive)[originator.id].sort_order,
action: () => { // action: () => {
hardDrive.update(data => { // hardDrive.update(data => {
data[originator.id].sort_order = item.value; // data[originator.id].sort_order = item.value;
return data; // return data;
}) // })
} // }
} // }
}), // }),
] // ]
}, // },
{ {
name: 'Refresh', name: 'Refresh',
action: () => { action: () => {