Rename to javascriptLibraryService

This commit is contained in:
Sebastiaan Janssen
2018-03-15 10:08:00 +01:00
parent 5161fd0cef
commit a465ed415d
2 changed files with 6 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
(function () {
'use strict';
"use strict";
function javascriptLibraryHelperService($q, $http, umbRequestHelper) {
function javascriptLibraryService($q, $http, umbRequestHelper) {
var existingLocales = [];
@@ -14,7 +14,7 @@
umbRequestHelper.getApiUrl(
"backOfficeAssetsApiBaseUrl",
"GetSupportedMomentLocales")),
'Failed to get cultures').then(function(locales) {
"Failed to get cultures").then(function(locales) {
existingLocales = locales;
deferred.resolve(existingLocales);
});
@@ -30,11 +30,8 @@
};
return service;
}
angular.module('umbraco.services').factory('javascriptLibraryHelperService', javascriptLibraryHelperService);
angular.module("umbraco.services").factory("javascriptLibraryService", javascriptLibraryService);
})();

View File

@@ -1,5 +1,5 @@
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 lastUserId = null;
@@ -304,7 +304,7 @@ angular.module('umbraco.services')
var promises = {
currentUser: this.getCurrentUser(),
supportedLocales: javascriptLibraryHelperService.getSupportedLocalesForMoment()
supportedLocales: javascriptLibraryService.getSupportedLocalesForMoment()
}
$q.all(promises).then((values) => {