From 6aa21d8c8325f2e88225c3cd5e0f5eec06cc71ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Mon, 15 Jun 2020 10:29:09 +0200 Subject: [PATCH] rename entry to block --- .../blocklist.blockconfiguration.overlay.controller.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/prevalue/blocklist.blockconfiguration.overlay.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/prevalue/blocklist.blockconfiguration.overlay.controller.js index b17ee35100..d722a17c1a 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/prevalue/blocklist.blockconfiguration.overlay.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/prevalue/blocklist.blockconfiguration.overlay.controller.js @@ -103,7 +103,7 @@ vm.requestRemoveSettingsForBlock = function(block) { localizationService.localizeMany(["general_remove", "defaultdialogs_confirmremoveusageof"]).then(function (data) { - var settingsElementType = vm.getElementTypeByAlias(entry.settingsElementTypeKey); + var settingsElementType = vm.getElementTypeByKey(block.settingsElementTypeKey); overlayService.confirmRemove({ title: data[0], @@ -112,14 +112,14 @@ overlayService.close(); }, submit: function () { - vm.removeSettingsForEntry(entry); + vm.removeSettingsForBlock(block); overlayService.close(); } }); }); }; - vm.removeSettingsForEntry = function(entry) { - entry.settingsElementTypeKey = null; + vm.removeSettingsForBlock = function(block) { + block.settingsElementTypeKey = null; };