-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update user select dropdown (#5246)
* chore: update translations Signed-off-by: NaYeong,Kim <[email protected]> * feat: create user group reference store Signed-off-by: NaYeong,Kim <[email protected]> * feat: update user select dropdown Signed-off-by: NaYeong,Kim <[email protected]> * chore: update translations Signed-off-by: NaYeong,Kim <[email protected]> * refactor: cleanup code(add type, apply props) Signed-off-by: NaYeong,Kim <[email protected]> * refactor: return type change Signed-off-by: NaYeong,Kim <[email protected]> --------- Signed-off-by: NaYeong,Kim <[email protected]>
- Loading branch information
Showing
11 changed files
with
439 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export type SelectedUserDropdownIdsType = { | ||
value: string; | ||
type: 'USER'|'USER_GROUP'; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
apps/web/src/lib/variable-models/managed-model/resource-model/user-group-variable-model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { UserGroupModel } from '@/schema/identity/user-group/model'; | ||
|
||
import ResourceVariableModel from '@/lib/variable-models/_base/resource-variable-model'; | ||
import type { VariableModelConstructorConfig } from '@/lib/variable-models/_base/types'; | ||
|
||
|
||
export default class UserGroupVariableModel extends ResourceVariableModel<UserGroupModel> { | ||
static meta = { | ||
key: 'user_group', | ||
name: 'User Group', | ||
resourceType: 'identity.UserGroup', | ||
idKey: 'user_group_id', | ||
nameKey: 'name', | ||
}; | ||
|
||
constructor(config: VariableModelConstructorConfig = {}) { | ||
super(config); | ||
this._meta = UserGroupVariableModel.meta; | ||
} | ||
} |
Oops, something went wrong.