fix: disable features for public beta

This commit is contained in:
Baptiste Grob
2020-09-30 16:37:10 +02:00
parent 212a65f463
commit 62df25d7d8
5 changed files with 28 additions and 5 deletions

View File

@@ -28,6 +28,8 @@ 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
@@ -139,6 +141,9 @@ class FooterViewCtrl extends PureViewCtrl<{}, {
reloadUpgradeStatus() {
this.application.checkForSecurityUpdate().then((available) => {
if (__PUBLIC_BETA__) {
return;
}
this.setState({
dataUpgradeAvailable: available
});