fix: remove public beta flags
This commit is contained in:
@@ -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
|
||||
@@ -94,7 +91,6 @@ class AccountMenuCtrl extends PureViewCtrl<{}, AccountMenuState> {
|
||||
mergeLocal: true,
|
||||
ephemeral: false,
|
||||
},
|
||||
strictSigninDisabled: __PUBLIC_BETA__,
|
||||
mutable: {}
|
||||
} as AccountMenuState;
|
||||
}
|
||||
@@ -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> {
|
||||
|
||||
@@ -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
|
||||
@@ -141,9 +139,6 @@ class FooterViewCtrl extends PureViewCtrl<{}, {
|
||||
|
||||
reloadUpgradeStatus() {
|
||||
this.application.checkForSecurityUpdate().then((available) => {
|
||||
if (__PUBLIC_BETA__) {
|
||||
return;
|
||||
}
|
||||
this.setState({
|
||||
dataUpgradeAvailable: available
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user