Always enable unstable app listing
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user