Remove supportConfig route

This commit is contained in:
Johannes Zellner
2023-12-03 16:24:16 +01:00
parent b9e584752b
commit 8927634636
7 changed files with 12 additions and 51 deletions
+4 -11
View File
@@ -11,7 +11,6 @@ angular.module('Application').controller('SupportController', ['$scope', '$locat
$scope.user = Client.getUserInfo();
$scope.apps = Client.getInstalledApps();
$scope.appsById = {};
$scope.supportConfig = null;
$scope.feedback = {
error: null,
@@ -96,19 +95,13 @@ angular.module('Application').controller('SupportController', ['$scope', '$locat
$scope.subscription = result;
Client.getSupportConfig(function (error, supportConfig) {
Client.getRemoteSupport(function (error, enabled) {
if (error) return console.error(error);
$scope.supportConfig = supportConfig;
Client.getInstalledApps().forEach(function (app) { $scope.appsById[app.id] = app; });
Client.getRemoteSupport(function (error, enabled) {
if (error) return console.error(error);
Client.getInstalledApps().forEach(function (app) { $scope.appsById[app.id] = app; });
$scope.sshSupportEnabled = enabled;
$scope.ready = true;
});
$scope.sshSupportEnabled = enabled;
$scope.ready = true;
});
});
});