diff --git a/package.json b/package.json index c5fe6fd..7035eed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Trec", - "version": "0.8.0", + "version": "0.9.5", "description": "T-rec time tracker is built for speed and live work item update in youtrack system.", "homepage": "", "author": { diff --git a/src/Menu.ts b/src/Menu.ts index bdf0e22..04f9e79 100644 --- a/src/Menu.ts +++ b/src/Menu.ts @@ -14,16 +14,16 @@ export class CustomMenu { { label: 'Accounts', submenu: [ - { - label: 'Add Account', + { + label: 'Switch', click() { - mainWindow.webContents.executeJavaScript('window.location="#/add-account?firstAccount=false"') + mainWindow.webContents.executeJavaScript('window.location="#/accounts"') } }, - { - label: 'Accounts', + { + label: 'Add new', click() { - mainWindow.webContents.executeJavaScript('window.location="#/accounts"') + mainWindow.webContents.executeJavaScript('window.location="#/add-account?firstAccount=false"') } } ] diff --git a/src/app/components/switch-account/switch-account.component.html b/src/app/components/switch-account/switch-account.component.html index a071318..659b318 100644 --- a/src/app/components/switch-account/switch-account.component.html +++ b/src/app/components/switch-account/switch-account.component.html @@ -6,14 +6,15 @@