Use features from config object

This commit is contained in:
Johannes Zellner
2020-02-13 16:34:37 +01:00
parent a13414ddb9
commit 0a29f92384
7 changed files with 9 additions and 24 deletions

View File

@@ -218,14 +218,6 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
region: null,
size: null
};
this._features = {
userMaxCount: Infinity,
appMaxCount: 2, // unused checked on the appstore side, but just for completeness
externalLdap: true,
eventLog: true,
privateDockerRegistry: true,
branding: true
};
this._installedApps = [];
this._installedAppsById = {};
this._appTags = [];
@@ -373,10 +365,6 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
return this._config;
};
Client.prototype.getFeatures = function () {
return this._features;
};
Client.prototype.setToken = function (accessToken) {
if (!accessToken) localStorage.removeItem('token');
else localStorage.token = accessToken;