feat: support domain name fuzzy search

Support domain name fuzzy search for users, user groups and projects

Change-Id: I7859b91ced6549c26655b1624f28bb19427194e6
This commit is contained in:
Jingwei.Zhang 2023-06-13 17:32:18 +08:00
parent eedea3eccd
commit 2d6f720041
4 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,10 @@
---
features:
- |
Support domain name fuzzy search:
* Support domain name fuzzy search in the user list page.
* Support domain name fuzzy search in the user group list page.
* Support domain name fuzzy search in the project list page.

View File

@ -271,6 +271,14 @@ export class Projects extends Base {
}
get searchFilters() {
const domainFilter = this.inDomainDetail
? []
: [
{
label: t('Domain Name'),
name: 'domainName',
},
];
return [
{
label: t('Project Name'),
@ -281,6 +289,7 @@ export class Projects extends Base {
name: 'enabled',
options: yesNoOptions,
},
...domainFilter,
{
label: t('Tags'),
name: 'tags',

View File

@ -167,6 +167,14 @@ export class User extends Base {
}
get searchFilters() {
const domainFilter = this.inDomainDetail
? []
: [
{
label: t('Domain Name'),
name: 'domainName',
},
];
return [
{
label: t('User Name'),
@ -181,6 +189,7 @@ export class User extends Base {
name: 'enabled',
options: yesNoOptions,
},
...domainFilter,
];
}

View File

@ -226,11 +226,20 @@ export class UserGroups extends Base {
}
get searchFilters() {
const domainFilter = this.inDomainDetail
? []
: [
{
label: t('Domain Name'),
name: 'domainName',
},
];
return [
{
label: t('User Group Name'),
name: 'name',
},
...domainFilter,
];
}