[#197] added now datetime filter constant

This commit is contained in:
Gani Georgiev
2022-08-15 22:37:54 +03:00
parent b7d32c23aa
commit 456ced75ce
13 changed files with 45 additions and 24 deletions
@@ -230,7 +230,7 @@
return null;
}
let options = [{ label: "false" }, { label: "true" }];
let options = [{ label: "false" }, { label: "true" }, { label: "@now" }];
if (!disableIndirectCollectionsKeys) {
options.push({ label: "@collection.*", apply: "@collection." });
@@ -263,7 +263,7 @@
// Returns all field keys as keyword patterns to highlight.
function keywords() {
const result = [];
const result = [{ regex: CommonHelper.escapeRegExp("@now"), token: "keyword" }];
const keys = getAllKeys(!disableRequestKeys, !disableIndirectCollectionsKeys);
for (const key of keys) {