fix title in insert field dialog

This commit is contained in:
Mads Rasmussen
2018-06-06 10:15:50 +02:00
parent ed1d7fb2c5
commit b98aa215c3
2 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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;