Skip to content
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

Merged
merged 9 commits into from
Oct 17, 2017
Merged

Conversation

AndyLnd
Copy link
Contributor

@AndyLnd AndyLnd commented Oct 17, 2017

No description provided.

accountContextPosition: { x: 0, y: 0 },
isAccountContextMenuVisible: false,
const defaultState = {
accountId: 0,
Copy link
Contributor

@Yserz Yserz Oct 17, 2017

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,
Copy link
Contributor

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

@AndyLnd AndyLnd changed the title feat: context menu for accounts feat: context menu for accounts (WEBAPP-4382) Oct 17, 2017
@@ -71,5 +69,8 @@ string.unreadMessages = 'Ungelesene Nachrichten';

string.wrapperAddAccount = 'Konto hinzufügen';
string.wrapperCreateTeam = 'Team erstellen';
string.wrapperLogOut = 'Ausloggen';
Copy link
Contributor

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.

@@ -17,8 +17,7 @@
*
*/


const {ipcRenderer, webFrame} = require('electron');
const { ipcRenderer, webFrame } = require('electron');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spaces..

@@ -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 + '"]');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

`.Webview[data-accountid="${id}"]`

@gregor
Copy link
Contributor

gregor commented Oct 17, 2017

Fixes #872

@gregor gregor merged commit 021e652 into master Oct 17, 2017
@gregor gregor deleted the context-menu-for-accounts branch October 17, 2017 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants