Files
Archetype/app/controllers/config.global.controller.js
T

21 lines
659 B
JavaScript
Raw Normal View History

2017-09-06 12:20:52 -04:00
angular.module('umbraco').controller('ArchetypeConfigGlobalOptionsController', function ($scope, archetypeGlobalConfigService) {
$scope.globalSettings = {};
$scope.confirmCheckNewVersionChange = function() {
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();
}
});