rename variantHelper to contentVariantUtilities
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
function EditorContentHeader(serverValidationManager, localizationService, editorState, variantHelper) {
|
||||
function EditorContentHeader(serverValidationManager, localizationService, editorState, contentVariantUtilities) {
|
||||
|
||||
function link(scope) {
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
|
||||
}
|
||||
|
||||
scope.getVariantDisplayName = variantHelper.getDisplayName;
|
||||
scope.getVariantDisplayName = contentVariantUtilities.getDisplayName;
|
||||
|
||||
scope.goBack = function () {
|
||||
if (scope.onBack) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/**
|
||||
* @ngdoc service
|
||||
* @name umbraco.services.variantHelper
|
||||
* @description A helper service for dealing with variants
|
||||
* @name umbraco.services.contentVariantUtilities
|
||||
* @description A utility service for dealing with variants
|
||||
**/
|
||||
function variantHelper() {
|
||||
function contentVariantUtilities() {
|
||||
/**
|
||||
* Returns the id for this variant
|
||||
* @param {any} variant
|
||||
@@ -36,4 +36,4 @@ function variantHelper() {
|
||||
getDisplayName
|
||||
}
|
||||
}
|
||||
angular.module('umbraco.services').factory('variantHelper', variantHelper);
|
||||
angular.module('umbraco.services').factory('contentVariantUtilities', contentVariantUtilities);
|
||||
@@ -1,7 +1,7 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
function PublishController($scope, localizationService, contentEditingHelper, variantHelper) {
|
||||
function PublishController($scope, localizationService, contentEditingHelper, contentVariantUtilities) {
|
||||
|
||||
var vm = this;
|
||||
vm.loading = true;
|
||||
@@ -12,7 +12,7 @@
|
||||
vm.dirtyVariantFilter = dirtyVariantFilter;
|
||||
vm.pristineVariantFilter = pristineVariantFilter;
|
||||
|
||||
$scope.getVariantDisplayName = variantHelper.getDisplayName;
|
||||
$scope.getVariantDisplayName = contentVariantUtilities.getDisplayName;
|
||||
|
||||
/** Returns true if publishing is possible based on if there are un-published mandatory languages */
|
||||
function canPublish() {
|
||||
|
||||
Reference in New Issue
Block a user