luci-base: add legacy directory, file and device validator JS stubs

Fixes: #5466
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2021-10-28 15:08:35 +02:00
parent 0ad54e4a7c
commit ad360ec00a

View file

@ -575,6 +575,18 @@ var ValidatorFactory = baseclass.extend({
string: function() {
return true;
},
directory: function() {
return true;
},
file: function() {
return true;
},
device: function() {
return true;
}
}
});