Skip to content

Commit 650d570

Browse files
authored
chore(connections-navigation): move drop view to last item in menu COMPASS-6500 (#7547)
1 parent a678b7a commit 650d570

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/compass-connections-navigation/src/item-actions.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,6 @@ export const collectionItemActions = ({
243243
if (type === 'view') {
244244
actions.push({ separator: true });
245245
actions.push(
246-
canEditCollection
247-
? {
248-
action: 'drop-collection',
249-
label: 'Drop view',
250-
icon: 'Trash',
251-
}
252-
: null,
253246
{
254247
action: 'duplicate-view',
255248
label: 'Duplicate view',
@@ -261,6 +254,13 @@ export const collectionItemActions = ({
261254
label: 'Modify view',
262255
icon: 'Edit',
263256
}
257+
: null,
258+
canEditCollection
259+
? {
260+
action: 'drop-collection',
261+
label: 'Drop view',
262+
icon: 'Trash',
263+
}
264264
: null
265265
);
266266

0 commit comments

Comments
 (0)