-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: context menu for accounts (WEBAPP-4382) #1050
Conversation
accountContextPosition: { x: 0, y: 0 }, | ||
isAccountContextMenuVisible: false, | ||
const defaultState = { | ||
accountId: 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default values for IDs should be strings
isAtLeastAdmin: false, | ||
isEditAccountMenuVisible: false, | ||
position: { x: 0, y: 0 }, | ||
sessionId: 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default values for IDs should be strings
electron/locale/strings-de.js
Outdated
@@ -71,5 +69,8 @@ string.unreadMessages = 'Ungelesene Nachrichten'; | |||
|
|||
string.wrapperAddAccount = 'Konto hinzufügen'; | |||
string.wrapperCreateTeam = 'Team erstellen'; | |||
string.wrapperLogOut = 'Ausloggen'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use Abmelden
everywhere else. Fixed on Crowdin. Please pull again.
electron/js/preload.js
Outdated
@@ -17,8 +17,7 @@ | |||
* | |||
*/ | |||
|
|||
|
|||
const {ipcRenderer, webFrame} = require('electron'); | |||
const { ipcRenderer, webFrame } = require('electron'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spaces..
electron/js/preload.js
Outdated
@@ -28,6 +27,7 @@ window.locStrings = locale[locale.getCurrent()]; | |||
window.locStringsDefault = locale['en']; | |||
|
|||
const getSelectedWebview = () => document.querySelector('.Webview:not(.hide)'); | |||
const getWebviewById = id => document.querySelector('.Webview[data-accountid="' + id + '"]'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`.Webview[data-accountid="${id}"]`
Fixes #872 |
No description provided.