diff --git a/src/views/settings.html b/src/views/settings.html index 7db44e305..357557e9b 100644 --- a/src/views/settings.html +++ b/src/views/settings.html @@ -282,21 +282,14 @@ Do not use these apps in production. -
- -
-
- Saved -
- -
- +
+
diff --git a/src/views/settings.js b/src/views/settings.js index 65ffd3a05..9da890fd5 100644 --- a/src/views/settings.js +++ b/src/views/settings.js @@ -355,25 +355,22 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca $scope.unstableApps = { busy: false, - success: false, - enabled: false, submit: function () { $scope.unstableApps.busy = true; - Client.setUnstableAppsConfig($scope.unstableApps.enabled, function (error) { - $scope.unstableApps.busy = false; - + Client.setUnstableAppsConfig(!$scope.unstableApps.enabled, function (error) { if (error) { - console.error('Unable to change unstable app listing.', error); + Client.error(error); + $scope.unstableApps.busy = false; return; } - $scope.unstableApps.success = true; $timeout(function () { - $scope.unstableApps.success = false; - }, 5000); + $scope.unstableApps.busy = false; + $scope.unstableApps.enabled = !$scope.unstableApps.enabled; + }, 3000); }); } };