use not-allowed for filters

This commit is contained in:
Niels Lyngsø
2020-10-28 14:19:42 +01:00
parent 5375dbbe3a
commit b6df9b9b14

View File

@@ -160,6 +160,7 @@
filter: function (i) {
return !(i.name.indexOf(".html") !== -1);
},
filterCssClass: "not-allowed",
select: function (node) {
const filepath = decodeURIComponent(node.id.replace(/\+/g, " "));
block.view = "~/" + filepath;
@@ -206,6 +207,7 @@
filter: function (i) {
return !(i.name.indexOf(".css") !== -1);
},
filterCssClass: "not-allowed",
select: function (node) {
const filepath = decodeURIComponent(node.id.replace(/\+/g, " "));
block.stylesheet = "~/" + filepath;