diff --git a/app/controllers/config.controller.js b/app/controllers/config.controller.js index 3c70095..26c760b 100644 --- a/app/controllers/config.controller.js +++ b/app/controllers/config.controller.js @@ -27,17 +27,13 @@ angular.module("umbraco").controller("Imulus.ArchetypeConfigController", functio //load the localization info userService.getCurrentUser() .then(function (user) { - $scope.model.langIso = user.locale; return user.locale; }) .then(function(langIso){ archetypePropertyEditorResource.getLocale(langIso) .then(function(locale){ - archetypePropertyEditorResource.getDefaultLocale(locale) - .then(function(defaultLocale) { - $scope.locales.locale = locale; - }); - }); + $scope.locales.locale = locale; + }); }); $scope.getLocales = function(){