mirror of
https://github.com/ducbao414/win32.run.git
synced 2025-12-16 17:22:51 +09:00
temporarily hiding sort menu for the desktop
This commit is contained in:
@@ -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: () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user