diff --git a/packages/frontend/src/pages/admin/roles.editor.vue b/packages/frontend/src/pages/admin/roles.editor.vue index d0be0a8c3..0f2f297a5 100644 --- a/packages/frontend/src/pages/admin/roles.editor.vue +++ b/packages/frontend/src/pages/admin/roles.editor.vue @@ -38,7 +38,11 @@
- + + + + +
@@ -55,7 +59,7 @@
- +
@@ -71,7 +75,7 @@
- +
@@ -87,7 +91,7 @@
- +
@@ -103,7 +107,7 @@
- +
@@ -119,7 +123,7 @@
- +
@@ -135,7 +139,7 @@
- +
@@ -151,7 +155,7 @@
- +
@@ -166,7 +170,7 @@
- +
@@ -181,7 +185,7 @@
- +
@@ -197,7 +201,7 @@
- +
@@ -212,7 +216,7 @@
- +
@@ -227,7 +231,7 @@
- +
@@ -242,7 +246,7 @@
- +
@@ -257,7 +261,7 @@
- +
@@ -335,6 +339,7 @@ const props = defineProps<{ }>(); const role = props.role; +let q = $ref(''); let name = $ref(role?.name ?? 'New Role'); let description = $ref(role?.description ?? ''); @@ -367,6 +372,11 @@ function getPriorityIcon(option) { return 'ti ti-point'; } +function matchQuery(keywords: string[]): boolean { + if (q.trim().length === 0) return true; + return keywords.some(keyword => keyword.toLowerCase().includes(q.toLowerCase())); +} + async function save() { if (props.readonly) return; if (role) {