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:
parent
eedea3eccd
commit
2d6f720041
@ -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.
|
@ -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',
|
||||
|
@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user