A boatload of Bugs (#3704)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
This commit is contained in:
parent
ea9b7ad0d1
commit
37734554ba
102 changed files with 2051 additions and 1115 deletions
|
@ -36,13 +36,17 @@
|
|||
</span>
|
||||
</td>
|
||||
<td>
|
||||
@if (!hasAdminRole(member) && member.libraries.length > 0) {
|
||||
@if (member.libraries.length > 5) {
|
||||
{{t('too-many-libraries')}}
|
||||
}
|
||||
@else {
|
||||
@for(lib of member.libraries; track lib.name) {
|
||||
<app-tag-badge class="col-auto">{{lib.name}}</app-tag-badge>
|
||||
@if (member.libraries.length > 0) {
|
||||
@if (hasAdminRole(member)) {
|
||||
{{t('all-libraries')}}
|
||||
} @else {
|
||||
@if (member.libraries.length > 5) {
|
||||
{{t('too-many-libraries')}}
|
||||
}
|
||||
@else {
|
||||
@for(lib of member.libraries; track lib.name) {
|
||||
<app-tag-badge class="col-auto">{{lib.name}}</app-tag-badge>
|
||||
}
|
||||
}
|
||||
}
|
||||
} @else {
|
||||
|
@ -56,10 +60,10 @@
|
|||
<span>{{null | defaultValue}}</span>
|
||||
} @else {
|
||||
@if (hasAdminRole(member)) {
|
||||
<app-tag-badge class="col-auto">{{t('admin')}}</app-tag-badge>
|
||||
<app-tag-badge class="col-auto">{{Role.Admin | roleLocalized}}</app-tag-badge>
|
||||
} @else {
|
||||
@for (role of roles; track role) {
|
||||
<app-tag-badge class="col-auto">{{role}}</app-tag-badge>
|
||||
<app-tag-badge class="col-auto">{{role | roleLocalized}}</app-tag-badge>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue