mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-30 08:04:09 +00:00
fix: duplicate message on workspace rename and close (#6457)
This commit is contained in:
@@ -53,7 +53,6 @@ const StyledWrapper = styled.div`
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: ${(props) => props.theme.workspace.accent};
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -485,8 +485,6 @@ export const renameWorkspaceAction = (workspaceUid, newName) => {
|
||||
uid: workspaceUid,
|
||||
name: newName
|
||||
}));
|
||||
|
||||
toast.success('Workspace renamed successfully');
|
||||
} catch (error) {
|
||||
throw error;
|
||||
}
|
||||
@@ -505,8 +503,6 @@ export const closeWorkspaceAction = (workspaceUid) => {
|
||||
|
||||
await ipcRenderer.invoke('renderer:close-workspace', workspace.pathname);
|
||||
dispatch(removeWorkspace(workspaceUid));
|
||||
|
||||
toast.success('Workspace closed successfully');
|
||||
} catch (error) {
|
||||
toast.error(error.message || 'Failed to close workspace');
|
||||
throw error;
|
||||
|
||||
@@ -160,7 +160,7 @@ const darkTheme = {
|
||||
},
|
||||
|
||||
workspace: {
|
||||
accent: '#F59E0B',
|
||||
accent: '#D9A342',
|
||||
border: '#444',
|
||||
borderMuted: '#585858',
|
||||
card: {
|
||||
|
||||
Reference in New Issue
Block a user