Skip to content

Commit

Permalink
fix: remove public beta flags
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Oct 7, 2020
1 parent 83bf5d7 commit d088d74
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 21 deletions.
14 changes: 3 additions & 11 deletions app/assets/javascripts/directives/views/accountMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,8 @@ type AccountMenuState = {
server: string;
encryptionEnabled: boolean;
selectedAutoLockInterval: any;
strictSigninDisabled: boolean;
}

declare const __PUBLIC_BETA__: boolean;

class AccountMenuCtrl extends PureViewCtrl<{}, AccountMenuState> {

public appVersion: string
Expand All @@ -94,7 +91,6 @@ class AccountMenuCtrl extends PureViewCtrl<{}, AccountMenuState> {
mergeLocal: true,
ephemeral: false,
},
strictSigninDisabled: __PUBLIC_BETA__,
mutable: {}
} as AccountMenuState;
}
Expand Down Expand Up @@ -336,13 +332,9 @@ class AccountMenuCtrl extends PureViewCtrl<{}, AccountMenuState> {
}

showRegister() {
if (__PUBLIC_BETA__) {
alertDialog({ text: 'Registration is disabled for this beta version.' });
} else {
this.setFormDataState({
showRegister: true
});
}
this.setFormDataState({
showRegister: true
});
}

async readFile(file: File): Promise<any> {
Expand Down
5 changes: 0 additions & 5 deletions app/assets/javascripts/views/footer/footer_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import {
import { PureViewCtrl } from '@Views/abstract/pure_view_ctrl';
import { confirmDialog } from '@/services/alertService';

declare const __PUBLIC_BETA__: boolean;

/**
* Disable before production release.
* Anyone who used the beta will still have access to
Expand Down Expand Up @@ -141,9 +139,6 @@ class FooterViewCtrl extends PureViewCtrl<{}, {

reloadUpgradeStatus() {
this.application.checkForSecurityUpdate().then((available) => {
if (__PUBLIC_BETA__) {
return;
}
this.setState({
dataUpgradeAvailable: available
});
Expand Down
6 changes: 2 additions & 4 deletions app/assets/templates/directives/account-menu.pug
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,11 @@
)
.sk-horizontal-group.tight
input.sk-input(
ng-disabled="self.state.strictSigninDisabled"
ng-model='self.state.formData.strictSignin',
type='checkbox'
)
p.sk-p(ng-if="!self.state.strictSigninDisabled") Use strict sign in
p.sk-p(ng-if="self.state.strictSigninDisabled") Strict sign is disabled for this beta version
span(ng-if="!self.state.strictSigninDisabled")
p.sk-p Use strict sign in
span
a.info(
href='https://standardnotes.org/help/security',
rel='noopener',
Expand Down
1 change: 0 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ module.exports = (env = {
__VERSION__: JSON.stringify(require('./package.json').version),
__WEB__: JSON.stringify(env.platform === 'web'),
__DESKTOP__: JSON.stringify(env.platform === 'desktop'),
__PUBLIC_BETA__: JSON.stringify(env.public_beta === 'true'),
}),
new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output
Expand Down

0 comments on commit d088d74

Please sign in to comment.