fix title in macro dialog
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
function MacroPickerController($scope, entityResource, macroResource, umbPropEditorHelper, macroService, formHelper, localizationService) {
|
||||
|
||||
|
||||
if(!$scope.model.title) {
|
||||
$scope.model.title = localizationService.localize("defaultdialogs_selectMacro");
|
||||
}
|
||||
|
||||
$scope.macros = [];
|
||||
$scope.model.selectedMacro = null;
|
||||
$scope.model.macroParams = [];
|
||||
@@ -12,6 +7,14 @@ function MacroPickerController($scope, entityResource, macroResource, umbPropEdi
|
||||
$scope.wizardStep = "macroSelect";
|
||||
$scope.noMacroParams = false;
|
||||
|
||||
function onInit() {
|
||||
if(!$scope.model.title) {
|
||||
localizationService.localize("defaultdialogs_selectMacro").then(function(value){
|
||||
$scope.model.title = value;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$scope.selectMacro = function (macro) {
|
||||
|
||||
$scope.model.selectedMacro = macro;
|
||||
@@ -121,6 +124,7 @@ function MacroPickerController($scope, entityResource, macroResource, umbPropEdi
|
||||
$scope.wizardStep = "macroSelect";
|
||||
});
|
||||
|
||||
onInit();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -375,7 +375,6 @@
|
||||
view: "macropicker",
|
||||
dialogData: {},
|
||||
show: true,
|
||||
title: localizationService.localize("template_insertMacro"),
|
||||
submit: function (model) {
|
||||
|
||||
var macroObject = macroService.collectValueData(model.selectedMacro, model.macroParams, "Mvc");
|
||||
|
||||
Reference in New Issue
Block a user