Use features from config object
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user