Always enable unstable app listing

This commit is contained in:
Girish Ramakrishnan
2019-11-11 08:40:28 -08:00
parent c5fc4db980
commit 40b75c6ac8
2 changed files with 0 additions and 58 deletions

View File

@@ -300,14 +300,6 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
});
}
function getUnstableAppsConfig() {
Client.getUnstableAppsConfig(function (error, result) {
if (error) return console.error(error);
$scope.unstableApps.enabled = result;
});
}
function getRegistryConfig() {
Client.getRegistryConfig(function (error, result) {
if (error) return console.error(error);
@@ -416,28 +408,6 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
}
};
$scope.unstableApps = {
busy: false,
enabled: false,
submit: function () {
$scope.unstableApps.busy = true;
Client.setUnstableAppsConfig(!$scope.unstableApps.enabled, function (error) {
if (error) {
Client.error(error);
$scope.unstableApps.busy = false;
return;
}
$timeout(function () {
$scope.unstableApps.busy = false;
$scope.unstableApps.enabled = !$scope.unstableApps.enabled;
}, 3000);
});
}
};
$scope.cloudronNameChange = {
busy: false,
error: {},
@@ -487,7 +457,6 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
Client.onReady(function () {
getAutoupdatePattern();
getUnstableAppsConfig();
getRegistryConfig();
$scope.update.checkStatus();