mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
# Which Problems Are Solved As part of the naming consistency initiative, the terms `Manager`, `Member` and other similar terms that are used in the context of an administrator are replaced by `Administrator` in the UI and documentation. # How the Problems Are Solved By replacing the following terms with Administrator / Administrator Roles in docs, Console UI, and guides. - Manager - Add Manager - Add a Manager - Administrator (used as a person type) - Membership - Member grants # Additional Changes minor grammatical edits in the docs # Additional Context - Closes https://github.com/zitadel/zitadel/issues/11291 --------- Co-authored-by: Marco A. <[email protected]>
90 lines
2.9 KiB
HTML
90 lines
2.9 KiB
HTML
<cnsl-detail-layout
|
|
*ngIf="project"
|
|
[hasBackButton]="true"
|
|
title="{{ projectName }} {{ 'PROJECT.MEMBER.TITLE' | translate }}"
|
|
>
|
|
<p class="subinfo" sub>
|
|
<span class="cnsl-secondary-text">{{ 'PROJECT.MEMBER.DESCRIPTION' | translate }}</span>
|
|
<a mat-icon-button href="https://zitadel.com/docs/concepts/structure/administrators" target="_blank">
|
|
<mat-icon class="icon">info_outline</mat-icon>
|
|
</a>
|
|
</p>
|
|
<cnsl-members-table
|
|
*ngIf="project"
|
|
[dataSource]="dataSource"
|
|
[memberRoleOptions]="memberRoleOptions"
|
|
(updateRoles)="updateRoles($event.member, $event.change)"
|
|
[factoryLoadFunc]="changePageFactory"
|
|
(changedSelection)="selection = $event"
|
|
[refreshTrigger]="changePage"
|
|
[canWrite]="
|
|
[
|
|
'project.member.write$',
|
|
'project.member.write:' + (projectType === ProjectType.PROJECTTYPE_OWNED)
|
|
? $any(project)?.id
|
|
: projectType === ProjectType.PROJECTTYPE_GRANTED
|
|
? $any(project)?.projectId
|
|
: '',
|
|
]
|
|
| hasRole
|
|
| async
|
|
"
|
|
[canDelete]="
|
|
[
|
|
'project.member.delete$',
|
|
'project.member.delete:' + (projectType === ProjectType.PROJECTTYPE_OWNED)
|
|
? $any(project)?.id
|
|
: projectType === ProjectType.PROJECTTYPE_GRANTED
|
|
? $any(project)?.projectId
|
|
: '',
|
|
]
|
|
| hasRole
|
|
| async
|
|
"
|
|
(deleteMember)="removeProjectMember($event)"
|
|
>
|
|
<ng-template
|
|
cnslHasRole
|
|
selectactions
|
|
[hasRole]="[
|
|
'project.member.delete:' + (projectType === ProjectType.PROJECTTYPE_OWNED)
|
|
? $any(project)?.id
|
|
: projectType === ProjectType.PROJECTTYPE_GRANTED
|
|
? $any(project)?.projectId
|
|
: '',
|
|
'project.member.delete',
|
|
]"
|
|
>
|
|
<button
|
|
(click)="removeProjectMemberSelection()"
|
|
color="warn"
|
|
matTooltip="{{ 'ORG_DETAIL.TABLE.DELETE' | translate }}"
|
|
mat-raised-button
|
|
>
|
|
<i class="las la-trash"></i>
|
|
<span>{{ 'ACTIONS.SELECTIONDELETE' | translate }}</span>
|
|
<cnsl-action-keys [type]="ActionKeysType.DELETE" (actionTriggered)="removeProjectMemberSelection()">
|
|
</cnsl-action-keys>
|
|
</button>
|
|
</ng-template>
|
|
<ng-template
|
|
cnslHasRole
|
|
writeactions
|
|
[hasRole]="[
|
|
'project.member.write:' + (projectType === ProjectType.PROJECTTYPE_OWNED)
|
|
? $any(project)?.id
|
|
: projectType === ProjectType.PROJECTTYPE_GRANTED
|
|
? $any(project)?.projectId
|
|
: '',
|
|
'project.member.write',
|
|
]"
|
|
>
|
|
<button color="primary" (click)="openAddMember()" class="cnsl-action-button" mat-raised-button>
|
|
<mat-icon class="icon">add</mat-icon>
|
|
<span>{{ 'ACTIONS.NEW' | translate }}</span>
|
|
<cnsl-action-keys (actionTriggered)="openAddMember()"> </cnsl-action-keys>
|
|
</button>
|
|
</ng-template>
|
|
</cnsl-members-table>
|
|
</cnsl-detail-layout>
|