Skip to content

Commit

Permalink
feat: added update view
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliano176 committed Mar 16, 2022
1 parent 4d66a77 commit 734d97c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/utility-bar/bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { SHELL_APP_ID, UtilityView } from '../../types';
import { useUtilityViews } from './utils';
import { logout } from '../network/logout';
import { useContextBridge } from '../store/context-bridge';
import { useAccountStore } from '../store/account';

const UtilityBarItem: FC<{ view: UtilityView }> = ({ view }) => {
const { mode, setMode, current, setCurrent } = useUtilityBarStore();
Expand Down Expand Up @@ -50,6 +51,16 @@ export const ShellUtilityBar: FC = () => {
),
icon: 'MessageSquareOutline'
},
{
id: 'update',
label: t('label.update_view', 'Update view'),
click: (): void => {
useAccountStore.getState().soapFetch(SHELL_APP_ID)<{ _jsns: string }, any>('NoOp', {
_jsns: 'urn:zimbraMail'
});
},
icon: 'HistoryOutline'
},
{
id: 'docs',
label: t('label.documentation', 'Documentation'),
Expand Down
1 change: 1 addition & 0 deletions translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
"unsaved_changes": "You have unsaved changes",
"unsaved_changes_line1": "Are you sure you want to leave this page without saving?",
"unsaved_changes_line2": "All your unsaved changes will be lost",
"update_view": "Update view",
"use_persona": "Use this persona",
"use_personas_line1": "Use personas to quickly change many settings when sending e-mail messages.",
"use_personas_line2": "For example, if you sometimes send e-mails in a particular role at work, create a persona for that.",
Expand Down

0 comments on commit 734d97c

Please sign in to comment.