Skip to content

Commit

Permalink
fix: make beta warning less alarming
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Nov 20, 2020
1 parent 935ced9 commit cebcbab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
6 changes: 2 additions & 4 deletions app/assets/javascripts/views/footer/footer-view.pug
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@
)
.sk-app-bar-item.border(ng-if="ctrl.state.showBetaWarning")
.sk-app-bar-item(ng-if="ctrl.state.showBetaWarning")
a.no-decoration.sk-label.title.uppercase(
href='https://github.com/standardnotes/forum/issues/1114',
rel='noopener',
target='_blank'
a.no-decoration.sk-label.title(
ng-click="ctrl.displayBetaDialog()"
) You are using a beta version of the app
.center
.sk-app-bar-item(ng-if='ctrl.arbitraryStatusMessage')
Expand Down
12 changes: 11 additions & 1 deletion app/assets/javascripts/views/footer/footer_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
STRING_UPGRADE_ACCOUNT_CONFIRM_BUTTON,
} from '@/strings';
import { PureViewCtrl } from '@Views/abstract/pure_view_ctrl';
import { confirmDialog } from '@/services/alertService';
import { alertDialog, confirmDialog } from '@/services/alertService';
import { autorun, IReactionDisposer } from 'mobx';

/**
Expand Down Expand Up @@ -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() {
if (this.application && this.application.authenticationInProgress()) {
return;
Expand Down

0 comments on commit cebcbab

Please sign in to comment.