Skip to content

Commit 845c4d1

Browse files
authored
feat(sidebar) add a refresh menu item to the new sidebar to replace the refresh button we lost COMPASS-6032 (#3428)
add a refresh menu item
1 parent 55ed4b5 commit 845c4d1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/compass-sidebar/src/components/sidebar-title.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ type Actions =
1717
| 'open-instance-workspace'
1818
| 'copy-connection-string'
1919
| 'edit-favorite'
20-
| 'open-connection-info';
20+
| 'open-connection-info'
21+
| 'refresh-data';
2122

2223
const titleLabel = css({
2324
overflow: 'hidden',
@@ -122,6 +123,12 @@ function SidebarTitle({
122123
icon: 'Connect',
123124
});
124125

126+
actions.push({
127+
action: 'refresh-data',
128+
label: 'Refresh',
129+
icon: 'Refresh',
130+
});
131+
125132
return actions;
126133
}, [isFavorite]);
127134

0 commit comments

Comments
 (0)