fix title in insert field dialog
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
function InsertFieldController($scope, $http, contentTypeResource) {
|
||||
function InsertFieldController($scope, $http, contentTypeResource, localizationService) {
|
||||
|
||||
var vm = this;
|
||||
|
||||
@@ -34,7 +34,9 @@
|
||||
|
||||
// set default title
|
||||
if(!$scope.model.title) {
|
||||
$scope.model.title = "Insert value";
|
||||
localizationService.localize("template_insertPageField").then(function(value){
|
||||
$scope.model.title = value;
|
||||
});
|
||||
}
|
||||
|
||||
// Load all fields
|
||||
|
||||
@@ -401,7 +401,6 @@
|
||||
closeButtonlabel: "Cancel",
|
||||
view: "insertfield",
|
||||
show: true,
|
||||
title: localizationService.localize("template_insertPageField"),
|
||||
submit: function (model) {
|
||||
insert(model.umbracoField);
|
||||
vm.pageFieldOverlay.show = false;
|
||||
|
||||
Reference in New Issue
Block a user