Skip to content

Commit

Permalink
spaces context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3orblade committed Feb 27, 2024
1 parent ba7cb80 commit f9e8aff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ts/component/menu/space.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const MenuSpace = observer(class MenuSpace extends React.Component<I.Menu> {
},
data: {
options: [
{ id: 'remove', icon: 'remove', name: translate('commonDelete') }
{ id: 'remove', color: 'red', name: translate('commonDelete') }
],
onSelect: (e: any, element: any) => {
switch (element.id) {
Expand Down
4 changes: 2 additions & 2 deletions src/ts/component/popup/page/settings/space/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const PopupSettingsPageSpacesList = observer(class PopupSettingsPageSpacesList e
onSpaceMore (e: React.MouseEvent, space) {
const element = $(`#icon-more-${space.id}`);
const options: any[] = [
{ id: 'delete', color: 'red', name: translate('commonDelete') },
{ id: 'remove', color: 'red', name: translate('commonDelete') },
];

menuStore.open('select', {
Expand All @@ -97,7 +97,7 @@ const PopupSettingsPageSpacesList = observer(class PopupSettingsPageSpacesList e
options,
onSelect: (e: any, item: any) => {
switch (item.id) {
case 'delete':
case 'remove':
Action.removeSpace(item.targetSpaceId, 'ScreenSettings');
break;
};
Expand Down

0 comments on commit f9e8aff

Please sign in to comment.