2017-09-06 12:20:52 -04:00
|
|
|
angular.module('umbraco').controller('ArchetypeConfigGlobalOptionsController', function ($scope, archetypeGlobalConfigService) {
|
|
|
|
|
$scope.globalSettings = {};
|
|
|
|
|
|
|
|
|
|
$scope.confirmCheckNewVersionChange = function() {
|
2017-09-07 08:55:26 -04:00
|
|
|
archetypeGlobalConfigService.setCheckForUpdates($scope.globalSettings.checkForNewVersion);
|
2017-09-06 12:20:52 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getGlobalSettings()
|
|
|
|
|
{
|
|
|
|
|
archetypeGlobalConfigService.globalSettings().then(function(data) {
|
|
|
|
|
$scope.globalSettings.checkForNewVersion = data.isCheckingForUpdates;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
init();
|
|
|
|
|
|
|
|
|
|
function init()
|
|
|
|
|
{
|
|
|
|
|
getGlobalSettings();
|
|
|
|
|
}
|
|
|
|
|
});
|