From 00222670729ddb200d664cf6c177a48d48cd7a61 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 16 Jan 2023 05:19:26 +0900 Subject: [PATCH] =?UTF-8?q?enhance(client):=20=E3=83=AD=E3=83=BC=E3=83=AB?= =?UTF-8?q?=E3=81=AE=E3=83=9D=E3=83=AA=E3=82=B7=E3=83=BC=E3=82=92=E7=B5=9E?= =?UTF-8?q?=E3=82=8A=E8=BE=BC=E3=82=81=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/pages/admin/roles.editor.vue | 40 ++++++++++++------- 1 file changed, 25 insertions(+), 15 deletions(-) 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) {