diff --git a/src/Umbraco.Community.Contentment/DataEditors/DataList/data-list.editor.js b/src/Umbraco.Community.Contentment/DataEditors/DataList/data-list.editor.js
index 300f81c4..0ec7a089 100644
--- a/src/Umbraco.Community.Contentment/DataEditors/DataList/data-list.editor.js
+++ b/src/Umbraco.Community.Contentment/DataEditors/DataList/data-list.editor.js
@@ -18,6 +18,7 @@ angular.module("umbraco").controller("Umbraco.Community.Contentment.DataEditors.
defaultIcon: "icon-stop",
enableDevMode: 0,
maxItems: 0,
+ notes: null,
};
var config = Object.assign({}, defaultConfig, $scope.model.config);
@@ -48,7 +49,10 @@ angular.module("umbraco").controller("Umbraco.Community.Contentment.DataEditors.
}
};
+ vm.notes = config.notes;
+
vm.add = add;
+ vm.edit = edit;
vm.open = open;
vm.remove = remove;
@@ -56,11 +60,7 @@ angular.module("umbraco").controller("Umbraco.Community.Contentment.DataEditors.
$scope.umbProperty.setPropertyActions([{
labelKey: "contentment_editRawValue",
icon: "brackets",
- method: function () {
- devModeService.editValue($scope.model, function () {
- // TODO: [LK:2021-04-13] Ensure that the edits are valid.
- });
- }
+ method: edit
}, {
labelKey: "clipboard_labelForRemoveAllEntries",
icon: "trash",
@@ -87,6 +87,12 @@ angular.module("umbraco").controller("Umbraco.Community.Contentment.DataEditors.
};
+ function edit() {
+ devModeService.editValue($scope.model, function () {
+ // NOTE: Any future validation can be done here.
+ });
+ };
+
function open(item) {
var parts = item.icon.split(" ");
diff --git a/src/Umbraco.Community.Contentment/DataEditors/ItemPicker/ItemPickerDataListEditor.cs b/src/Umbraco.Community.Contentment/DataEditors/ItemPicker/ItemPickerDataListEditor.cs
index 8c6ace4c..619c1a33 100644
--- a/src/Umbraco.Community.Contentment/DataEditors/ItemPicker/ItemPickerDataListEditor.cs
+++ b/src/Umbraco.Community.Contentment/DataEditors/ItemPicker/ItemPickerDataListEditor.cs
@@ -45,7 +45,7 @@ public sealed class ItemPickerDataListEditor : IDataListEditor
{
Key = "defaultIcon",
Name = "Default icon",
- Description = "Select an icon to be displayed as the default icon, (for when no icon is available).",
+ Description = "Select an icon to be displayed as the default icon,
(for when no icon is available).",
View = IOHelper.ResolveUrl("~/umbraco/views/propertyeditors/listview/icon.prevalues.html"),
},
new ConfigurationField
diff --git a/src/Umbraco.Community.Contentment/DataEditors/ItemPicker/item-picker.js b/src/Umbraco.Community.Contentment/DataEditors/ItemPicker/item-picker.js
index a51783a4..895b8f08 100644
--- a/src/Umbraco.Community.Contentment/DataEditors/ItemPicker/item-picker.js
+++ b/src/Umbraco.Community.Contentment/DataEditors/ItemPicker/item-picker.js
@@ -97,7 +97,9 @@ angular.module("umbraco").controller("Umbraco.Community.Contentment.DataEditors.
});
}
- $scope.umbProperty.setPropertyActions(vm.propertyActions);
+ if (vm.propertyActions.length > 0) {
+ $scope.umbProperty.setPropertyActions(vm.propertyActions);
+ }
}
};
diff --git a/src/Umbraco.Community.Contentment/DataEditors/Notes/notes.html b/src/Umbraco.Community.Contentment/DataEditors/Notes/notes.html
index 93926f7b..483c8a87 100644
--- a/src/Umbraco.Community.Contentment/DataEditors/Notes/notes.html
+++ b/src/Umbraco.Community.Contentment/DataEditors/Notes/notes.html
@@ -3,6 +3,4 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at https://mozilla.org/MPL/2.0/. -->
-
+
diff --git a/src/Umbraco.Community.Contentment/DataEditors/RadioButtonList/radio-button-list.js b/src/Umbraco.Community.Contentment/DataEditors/RadioButtonList/radio-button-list.js
index ddf1ce3d..ae671b78 100644
--- a/src/Umbraco.Community.Contentment/DataEditors/RadioButtonList/radio-button-list.js
+++ b/src/Umbraco.Community.Contentment/DataEditors/RadioButtonList/radio-button-list.js
@@ -51,7 +51,9 @@ angular.module("umbraco").controller("Umbraco.Community.Contentment.DataEditors.
});
}
- $scope.umbProperty.setPropertyActions(vm.propertyActions);
+ if (vm.propertyActions.length > 0) {
+ $scope.umbProperty.setPropertyActions(vm.propertyActions);
+ }
}
};
diff --git a/src/Umbraco.Community.Contentment/DataEditors/Tags/tags.js b/src/Umbraco.Community.Contentment/DataEditors/Tags/tags.js
index 1188713c..47c3ef99 100644
--- a/src/Umbraco.Community.Contentment/DataEditors/Tags/tags.js
+++ b/src/Umbraco.Community.Contentment/DataEditors/Tags/tags.js
@@ -110,7 +110,9 @@ angular.module("umbraco").controller("Umbraco.Community.Contentment.DataEditors.
});
}
- $scope.umbProperty.setPropertyActions(vm.propertyActions);
+ if (vm.propertyActions.length > 0) {
+ $scope.umbProperty.setPropertyActions(vm.propertyActions);
+ }
}
};
@@ -150,7 +152,6 @@ angular.module("umbraco").controller("Umbraco.Community.Contentment.DataEditors.
};
function keyUp($event, $index) {
- console.log("keyUp", $event.keyCode, $index);
if ($event.keyCode === 8 || $event.keyCode === 46) {
remove($index);
}
diff --git a/src/Umbraco.Community.Contentment/DataEditors/TemplatedList/templated-list.js b/src/Umbraco.Community.Contentment/DataEditors/TemplatedList/templated-list.js
index 564f671d..658ff887 100644
--- a/src/Umbraco.Community.Contentment/DataEditors/TemplatedList/templated-list.js
+++ b/src/Umbraco.Community.Contentment/DataEditors/TemplatedList/templated-list.js
@@ -63,7 +63,9 @@ angular.module("umbraco").controller("Umbraco.Community.Contentment.DataEditors.
});
}
- $scope.umbProperty.setPropertyActions(vm.propertyActions);
+ if (vm.propertyActions.length > 0) {
+ $scope.umbProperty.setPropertyActions(vm.propertyActions);
+ }
}
};
diff --git a/src/Umbraco.Community.Contentment/Properties/VersionInfo.cs b/src/Umbraco.Community.Contentment/Properties/VersionInfo.cs
index e55b0e26..50bfcc4b 100644
--- a/src/Umbraco.Community.Contentment/Properties/VersionInfo.cs
+++ b/src/Umbraco.Community.Contentment/Properties/VersionInfo.cs
@@ -1,5 +1,5 @@
using System.Reflection;
[assembly: AssemblyVersion("1.4")]
-[assembly: AssemblyFileVersion("1.4.3")]
-[assembly: AssemblyInformationalVersion("1.4.3")]
+[assembly: AssemblyFileVersion("1.4.4")]
+[assembly: AssemblyInformationalVersion("1.4.4")]