add setDirty() logic to remove actions on mediaPicker3 property editor

(cherry picked from commit 3377a7c96b)
This commit is contained in:
bakersbakebread
2022-09-30 12:18:22 +01:00
committed by Sebastiaan Janssen
parent 1c12e96c65
commit ded4424b98

View File

@@ -302,6 +302,8 @@
if (onSuccess) {
onSuccess();
}
setDirty();
},
close: function () {
editorService.close();
@@ -350,12 +352,15 @@
if (index !== -1) {
vm.model.value.splice(index, 1);
}
setDirty();
}
function deleteAllMedias() {
if (!vm.allowRemoveMedia) return;
vm.model.value = [];
setDirty();
}
function setActiveMedia(mediaEntryOrNull) {