UX Pass 6 (#3131)
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com>
This commit is contained in:
parent
fc644985be
commit
62383042b0
70 changed files with 741 additions and 399 deletions
|
|
@ -647,7 +647,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<h4>Volumes</h4>
|
||||
<h4>{{t('volumes-title')}}</h4>
|
||||
@if (isLoadingVolumes) {
|
||||
<div class="spinner-border text-secondary" role="status">
|
||||
<span class="visually-hidden">{{t('loading')}}</span>
|
||||
|
|
@ -671,7 +671,7 @@
|
|||
<div class="row g-0">
|
||||
<div class="col">
|
||||
<button type="button" class="btn btn-outline-primary" (click)="collapse.toggle()"
|
||||
[attr.aria-expanded]="!volumeCollapsed[volume.name]">
|
||||
[attr.aria-expanded]="!volumeCollapsed[volume.name]" [disabled]="!isAdmin">
|
||||
{{t('view-files')}}
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import {
|
|||
NgbNavOutlet,
|
||||
NgbTooltip
|
||||
} from '@ng-bootstrap/ng-bootstrap';
|
||||
import { forkJoin, Observable, of } from 'rxjs';
|
||||
import {forkJoin, Observable, of, tap} from 'rxjs';
|
||||
import { map } from 'rxjs/operators';
|
||||
import { Breakpoint, UtilityService } from 'src/app/shared/_services/utility.service';
|
||||
import { TypeaheadSettings } from 'src/app/typeahead/_models/typeahead-settings';
|
||||
|
|
@ -184,6 +184,7 @@ export class EditSeriesModalComponent implements OnInit {
|
|||
*/
|
||||
selectedCover: string = '';
|
||||
coverImageReset = false;
|
||||
isAdmin: boolean = false;
|
||||
|
||||
saveNestedComponents: EventEmitter<void> = new EventEmitter();
|
||||
|
||||
|
|
@ -202,6 +203,11 @@ export class EditSeriesModalComponent implements OnInit {
|
|||
this.libraryName = names[this.series.libraryId];
|
||||
});
|
||||
|
||||
this.accountService.isAdmin$.pipe(takeUntilDestroyed(this.destroyRef), tap(isAdmin => {
|
||||
this.isAdmin = isAdmin;
|
||||
this.cdRef.markForCheck();
|
||||
})).subscribe();
|
||||
|
||||
this.initSeries = Object.assign({}, this.series);
|
||||
|
||||
this.editSeriesForm = this.fb.group({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue