fix: make beta warning less alarming

This commit is contained in:
Baptiste Grob
2020-11-20 11:47:52 +01:00
parent 935ced9be6
commit cebcbab10e
2 changed files with 13 additions and 5 deletions

View File

@@ -37,10 +37,8 @@
) )
.sk-app-bar-item.border(ng-if="ctrl.state.showBetaWarning") .sk-app-bar-item.border(ng-if="ctrl.state.showBetaWarning")
.sk-app-bar-item(ng-if="ctrl.state.showBetaWarning") .sk-app-bar-item(ng-if="ctrl.state.showBetaWarning")
a.no-decoration.sk-label.title.uppercase( a.no-decoration.sk-label.title(
href='https://github.com/standardnotes/forum/issues/1114', ng-click="ctrl.displayBetaDialog()"
rel='noopener',
target='_blank'
) You are using a beta version of the app ) You are using a beta version of the app
.center .center
.sk-app-bar-item(ng-if='ctrl.arbitraryStatusMessage') .sk-app-bar-item(ng-if='ctrl.arbitraryStatusMessage')

View File

@@ -23,7 +23,7 @@ import {
STRING_UPGRADE_ACCOUNT_CONFIRM_BUTTON, STRING_UPGRADE_ACCOUNT_CONFIRM_BUTTON,
} from '@/strings'; } from '@/strings';
import { PureViewCtrl } from '@Views/abstract/pure_view_ctrl'; import { PureViewCtrl } from '@Views/abstract/pure_view_ctrl';
import { confirmDialog } from '@/services/alertService'; import { alertDialog, confirmDialog } from '@/services/alertService';
import { autorun, IReactionDisposer } from 'mobx'; import { autorun, IReactionDisposer } from 'mobx';
/** /**
@@ -568,6 +568,16 @@ class FooterViewCtrl extends PureViewCtrl<{}, {
} }
} }
displayBetaDialog() {
alertDialog({
title: 'You are using a beta version of the app',
text:
'If you wish to go back to a stable version, make sure to sign out ' +
'before installing it.<br>You can silence this warning in the ' +
'<em>Account</em> menu.'
});
}
clickOutsideAccountMenu() { clickOutsideAccountMenu() {
if (this.application && this.application.authenticationInProgress()) { if (this.application && this.application.authenticationInProgress()) {
return; return;