-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
@@ -22,6 +22,7 @@ | |||
height: 100%; | |||
position: relative; | |||
width: 100%; | |||
max-width: 100%; |
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.
This fixes display of accounts on firefox (especially in Parity Bar when selecting default account, the accounts were overlapping).
@@ -60,19 +60,27 @@ export default class Store { | |||
} | |||
|
|||
@action testInstall = () => { | |||
this.shouldInstall = this.readStatus(); | |||
this.readStatus() |
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.
MobX sometimes does things a bit funny when dealing with promises, i.e. not firing updates when inside a promise chain. Generally it would be preferable to...
@action setInstallStatus = (shouldInstall) => {
this.shouldInstall = shouldInstall;
}
testInstall = () => {
this.readStatus().then(this.setInstallStatus);
}
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.
Generally looks good, however I would swap the state updates to be inside a function and not as part of the promise chain. Updates may/may not fire in the current incarnation.
Thanks @jacogr! Updated. |
LG happy to merge, however Rust tests failing (not that there were any changes there). Something weird is going on. |
* Fix extension detection. * Fix mobx quirks. * Update submodule.
Sometimes the extension script is injected a little bit late, so we need to defer the check.
Resolves #6388