Always enable unstable app listing
This commit is contained in:
@@ -344,31 +344,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-left">
|
||||
<h3>Unstable App Listing</h3>
|
||||
</div>
|
||||
|
||||
<div class="card" style="margin-bottom: 15px;">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<p>
|
||||
Enable this option to list and install apps in the testing phase. These apps are not officially supported and there is no
|
||||
guarantee that they will be updated in the future.
|
||||
</p>
|
||||
<b class="text-danger">
|
||||
Do not use these apps in production.
|
||||
</b>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-md-offset-6 text-right">
|
||||
<button ng-class="!unstableApps.enabled ? 'btn btn-outline pull-right btn-danger' : 'btn btn-outline pull-right btn-primary'" ng-click="unstableApps.submit()" ng-disabled="unstableApps.busy"><i class="fa fa-circle-notch fa-spin" ng-show="unstableApps.busy"></i>
|
||||
{{ unstableApps.enabled ? 'Disable' : 'Enable' }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -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