Add feature object and show/hide elements accordingly

This commit is contained in:
Johannes Zellner
2020-02-13 15:30:31 +01:00
parent 3dd0566f48
commit a13414ddb9
7 changed files with 135 additions and 98 deletions

View File

@@ -2,7 +2,6 @@
/* global angular:false */
/* global $:false */
/* global moment */
angular.module('Application').controller('SettingsController', ['$scope', '$location', '$rootScope', '$timeout', 'Client', function ($scope, $location, $rootScope, $timeout, Client) {
Client.onReady(function () { if (!Client.getUserInfo().admin) $location.path('/'); });
@@ -10,6 +9,7 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
$scope.client = Client;
$scope.user = Client.getUserInfo();
$scope.config = Client.getConfig();
$scope.features = Client.getFeatures();
$scope.installedApps = Client.getInstalledApps();
$scope.subscription = null;