Compare commits

...

1 Commits

Author SHA1 Message Date
Niels Hartvig b0230a1586 Rename the javascriptlibrary so it's just a service, not a helperservice :) 2018-03-15 09:32:44 +01:00
2 changed files with 4 additions and 4 deletions
@@ -1,7 +1,7 @@
(function () { (function () {
'use strict'; 'use strict';
function javascriptLibraryHelperService($q, $http, umbRequestHelper) { function javascriptLibraryService($q, $http, umbRequestHelper) {
var existingLocales = []; var existingLocales = [];
@@ -33,7 +33,7 @@
} }
angular.module('umbraco.services').factory('javascriptLibraryHelperService', javascriptLibraryHelperService); angular.module('umbraco.services').factory('javascriptLibraryService', javascriptLibraryService);
})(); })();
@@ -1,5 +1,5 @@
angular.module('umbraco.services') angular.module('umbraco.services')
.factory('userService', function ($rootScope, eventsService, $q, $location, $log, securityRetryQueue, authResource, assetsService, dialogService, $timeout, angularHelper, $http, javascriptLibraryHelperService) { .factory('userService', function ($rootScope, eventsService, $q, $location, $log, securityRetryQueue, authResource, assetsService, dialogService, $timeout, angularHelper, $http, javascriptLibraryService) {
var currentUser = null; var currentUser = null;
var lastUserId = null; var lastUserId = null;
@@ -304,7 +304,7 @@ angular.module('umbraco.services')
var promises = { var promises = {
currentUser: this.getCurrentUser(), currentUser: this.getCurrentUser(),
supportedLocales: javascriptLibraryHelperService.getSupportedLocalesForMoment() supportedLocales: javascriptLibraryService.getSupportedLocalesForMoment()
} }
$q.all(promises).then((values) => { $q.all(promises).then((values) => {