display an error message if settings does not align.

This commit is contained in:
Niels Lyngsø
2020-11-03 13:38:54 +01:00
parent 9c820c7939
commit 67367fe111

View File

@@ -13,7 +13,7 @@
(function () {
'use strict';
function blockEditorModelObjectFactory($interpolate, $q, udiService, contentResource, localizationService, umbRequestHelper, clipboardService) {
function blockEditorModelObjectFactory($interpolate, $q, udiService, contentResource, localizationService, umbRequestHelper, clipboardService, notificationsService) {
/**
* Simple mapping from property model content entry to editing model,
@@ -813,7 +813,7 @@
if(blockConfiguration.settingsElementTypeKey === blockData.settingsData.contentTypeKey) {
this.value.settingsData.push(blockData.settingsData);
} else {
// Settings ElementType does not align, so we will fail.
notificationsService.error("Clipboard", "Couldn't paste because settings-data is not compatible.");
return null;
}
} else {