diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index 9ac16e59e..0d5e93a77 100644 --- a/install/ui/src/freeipa/widget.js +++ b/install/ui/src/freeipa/widget.js @@ -4188,6 +4188,7 @@ IPA.attribute_table_widget = function(spec) { that.attribute_name = spec.attribute_name || that.name; that.adder_dialog_spec = spec.adder_dialog; + that.deleter_dialog_spec = spec.deleter_dialog; that.css_class = spec.css_class; that.add_command = spec.add_command; @@ -4335,9 +4336,17 @@ IPA.attribute_table_widget = function(spec) { return null; } + var title; + if (that.deleter_dialog_spec) { + var pkey = that.facet.get_pkey(); + title = text.get(that.deleter_dialog_spec.title); + title = title.replace('${primary_key}', pkey); + } + var dialog = IPA.deleter_dialog({ entity: that.entity, - values: selected_values + values: selected_values, + title: title, }); dialog.execute = function() {