Add not-allowed cursor for entities in file picker which are not allowed to select

This commit is contained in:
Bjarne Fyrstenborg
2020-08-20 23:02:38 +02:00
committed by Sebastiaan Janssen
parent a0c9c98f81
commit 62d2963501

View File

@@ -250,6 +250,7 @@
filter: function (i) {
return !(i.name.indexOf(".jpg") !== -1 || i.name.indexOf(".jpeg") !== -1 || i.name.indexOf(".png") !== -1 || i.name.indexOf(".svg") !== -1 || i.name.indexOf(".webp") !== -1 || i.name.indexOf(".gif") !== -1);
},
filterCssClass: "not-allowed",
select: function (file) {
const id = decodeURIComponent(file.id.replace(/\+/g, " "));
block.thumbnail = "~/" + id;