Introduce more granular permission controls and update the user management UI (#1965)
Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
<p-tablist>
|
||||
<p-tab value="0">Prime Icons</p-tab>
|
||||
<p-tab value="1">SVG Icons</p-tab>
|
||||
<p-tab value="2">Add SVG Icon(s)</p-tab>
|
||||
@if (canManageIcons) {
|
||||
<p-tab value="2">Add SVG Icon(s)</p-tab>
|
||||
}
|
||||
</p-tablist>
|
||||
<p-tabpanels>
|
||||
<p-tabpanel value="0">
|
||||
@@ -58,8 +60,8 @@
|
||||
outlined>
|
||||
</p-button>
|
||||
<span class="pagination-info">
|
||||
Page {{ currentSvgPage + 1 }} of {{ totalSvgPages }}
|
||||
</span>
|
||||
Page {{ currentSvgPage + 1 }} of {{ totalSvgPages }}
|
||||
</span>
|
||||
<p-button
|
||||
(onClick)="loadSvgIcons(currentSvgPage + 1)"
|
||||
[disabled]="currentSvgPage >= totalSvgPages - 1"
|
||||
@@ -71,113 +73,116 @@
|
||||
</div>
|
||||
}
|
||||
|
||||
<div style="display: flex; align-items: center; position: fixed; right: 32px; bottom: 32px; z-index: 101;">
|
||||
<div
|
||||
class="svg-trash-area"
|
||||
[class.trash-hover]="isTrashHover"
|
||||
(dragover)="onTrashDragOver($event)"
|
||||
(dragleave)="onTrashDragLeave($event)"
|
||||
(drop)="onTrashDrop($event)"
|
||||
>
|
||||
<i class="pi pi-trash"></i>
|
||||
<span>Drag here to delete icon</span>
|
||||
@if (canManageIcons) {
|
||||
<div style="display: flex; align-items: center; position: fixed; right: 32px; bottom: 32px; z-index: 101;">
|
||||
<div
|
||||
class="svg-trash-area"
|
||||
[class.trash-hover]="isTrashHover"
|
||||
(dragover)="onTrashDragOver($event)"
|
||||
(dragleave)="onTrashDragLeave($event)"
|
||||
(drop)="onTrashDrop($event)">
|
||||
<i class="pi pi-trash"></i>
|
||||
<span>Drag here to delete icon</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
</p-tabpanel>
|
||||
<p-tabpanel value="2">
|
||||
<div class="svg-paste-container">
|
||||
<div class="svg-input-section">
|
||||
<input
|
||||
type="text"
|
||||
[(ngModel)]="svgName"
|
||||
placeholder="Enter icon name for saving"
|
||||
class="svg-name-input"
|
||||
/>
|
||||
@if (canManageIcons) {
|
||||
<p-tabpanel value="2">
|
||||
<div class="svg-paste-container">
|
||||
<div class="svg-input-section">
|
||||
<input
|
||||
type="text"
|
||||
[(ngModel)]="svgName"
|
||||
placeholder="Enter icon name for saving"
|
||||
class="svg-name-input"
|
||||
/>
|
||||
|
||||
<textarea
|
||||
[(ngModel)]="svgContent"
|
||||
(ngModelChange)="onSvgContentChange()"
|
||||
placeholder="Paste your SVG code here..."
|
||||
class="svg-textarea"
|
||||
rows="8"></textarea>
|
||||
<textarea
|
||||
[(ngModel)]="svgContent"
|
||||
(ngModelChange)="onSvgContentChange()"
|
||||
placeholder="Paste your SVG code here..."
|
||||
class="svg-textarea"
|
||||
rows="8"></textarea>
|
||||
|
||||
@if (svgContent && svgPreview) {
|
||||
<div class="svg-preview-section">
|
||||
<h4 class="preview-title">Preview</h4>
|
||||
<div class="svg-preview" [innerHTML]="svgPreview"></div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (errorMessage) {
|
||||
<div class="error-message">{{ errorMessage }}</div>
|
||||
}
|
||||
|
||||
<div class="button-container">
|
||||
<p-button
|
||||
(onClick)="addSvgEntry()"
|
||||
[disabled]="!svgContent || !svgName"
|
||||
label="Add to Queue"
|
||||
severity="primary"
|
||||
outlined
|
||||
icon="pi pi-plus">
|
||||
</p-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (svgEntries.length > 0) {
|
||||
<div class="svg-entries-section">
|
||||
<div class="entries-header">
|
||||
<h4 class="entries-title">
|
||||
Queued Icons ({{ svgEntries.length }})
|
||||
</h4>
|
||||
<p-button
|
||||
(onClick)="clearAllEntries()"
|
||||
label="Clear All"
|
||||
severity="danger"
|
||||
[text]="true"
|
||||
icon="pi pi-times">
|
||||
</p-button>
|
||||
</div>
|
||||
|
||||
<div class="entries-grid">
|
||||
@for (entry of svgEntries; track entry.name; let i = $index) {
|
||||
<div class="entry-card" [class.has-error]="entry.error">
|
||||
<div class="entry-header">
|
||||
<span class="entry-name">{{ entry.name }}</span>
|
||||
<button
|
||||
class="entry-remove"
|
||||
(click)="removeSvgEntry(i)"
|
||||
title="Remove">
|
||||
<i class="pi pi-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div class="entry-preview" [innerHTML]="entry.preview"></div>
|
||||
@if (entry.error) {
|
||||
<div class="entry-error">{{ entry.error }}</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (batchErrorMessage) {
|
||||
<div class="error-message">{{ batchErrorMessage }}</div>
|
||||
@if (svgContent && svgPreview) {
|
||||
<div class="svg-preview-section">
|
||||
<h4 class="preview-title">Preview</h4>
|
||||
<div class="svg-preview" [innerHTML]="svgPreview"></div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="batch-actions">
|
||||
@if (errorMessage) {
|
||||
<div class="error-message">{{ errorMessage }}</div>
|
||||
}
|
||||
|
||||
<div class="button-container">
|
||||
<p-button
|
||||
(onClick)="saveAllSvgs()"
|
||||
[loading]="isSavingBatch"
|
||||
[disabled]="svgEntries.length === 0"
|
||||
label="Save All Icons"
|
||||
severity="success"
|
||||
icon="pi pi-save">
|
||||
(onClick)="addSvgEntry()"
|
||||
[disabled]="!svgContent || !svgName"
|
||||
label="Add to Queue"
|
||||
severity="primary"
|
||||
outlined
|
||||
icon="pi pi-plus">
|
||||
</p-button>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</p-tabpanel>
|
||||
|
||||
@if (svgEntries.length > 0) {
|
||||
<div class="svg-entries-section">
|
||||
<div class="entries-header">
|
||||
<h4 class="entries-title">
|
||||
Queued Icons ({{ svgEntries.length }})
|
||||
</h4>
|
||||
<p-button
|
||||
(onClick)="clearAllEntries()"
|
||||
label="Clear All"
|
||||
severity="danger"
|
||||
[text]="true"
|
||||
icon="pi pi-times">
|
||||
</p-button>
|
||||
</div>
|
||||
|
||||
<div class="entries-grid">
|
||||
@for (entry of svgEntries; track entry.name; let i = $index) {
|
||||
<div class="entry-card" [class.has-error]="entry.error">
|
||||
<div class="entry-header">
|
||||
<span class="entry-name">{{ entry.name }}</span>
|
||||
<button
|
||||
class="entry-remove"
|
||||
(click)="removeSvgEntry(i)"
|
||||
title="Remove">
|
||||
<i class="pi pi-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div class="entry-preview" [innerHTML]="entry.preview"></div>
|
||||
@if (entry.error) {
|
||||
<div class="entry-error">{{ entry.error }}</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (batchErrorMessage) {
|
||||
<div class="error-message">{{ batchErrorMessage }}</div>
|
||||
}
|
||||
|
||||
<div class="batch-actions">
|
||||
<p-button
|
||||
(onClick)="saveAllSvgs()"
|
||||
[loading]="isSavingBatch"
|
||||
[disabled]="svgEntries.length === 0"
|
||||
label="Save All Icons"
|
||||
severity="success"
|
||||
icon="pi pi-save">
|
||||
</p-button>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</p-tabpanel>
|
||||
}
|
||||
</p-tabpanels>
|
||||
</p-tabs>
|
||||
|
||||
@@ -9,6 +9,7 @@ import {MessageService} from 'primeng/api';
|
||||
import {IconCategoriesHelper} from '../../helpers/icon-categories.helper';
|
||||
import {Button} from 'primeng/button';
|
||||
import {TabsModule} from 'primeng/tabs';
|
||||
import {UserService} from '../../../features/settings/user-management/user.service';
|
||||
|
||||
interface SvgEntry {
|
||||
name: string;
|
||||
@@ -65,6 +66,7 @@ export class IconPickerComponent implements OnInit {
|
||||
sanitizer = inject(DomSanitizer);
|
||||
urlHelper = inject(UrlHelperService);
|
||||
messageService = inject(MessageService);
|
||||
userService = inject(UserService);
|
||||
|
||||
searchText: string = '';
|
||||
selectedIcon: string | null = null;
|
||||
@@ -399,4 +401,9 @@ export class IconPickerComponent implements OnInit {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
get canManageIcons(): boolean {
|
||||
const user = this.userService.getCurrentUser();
|
||||
return user?.permissions.canManageIcons || user?.permissions.admin || false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ export class AppMenuitemComponent implements OnInit, OnDestroy {
|
||||
) {
|
||||
this.userService.userState$.subscribe(userState => {
|
||||
if (userState?.user) {
|
||||
this.canManipulateLibrary = userState.user.permissions.canManipulateLibrary;
|
||||
this.canManipulateLibrary = userState.user.permissions.canManageLibrary;
|
||||
this.admin = userState.user.permissions.admin;
|
||||
}
|
||||
});
|
||||
|
||||
+94
-58
@@ -30,46 +30,50 @@
|
||||
<ul class="topbar-items hidden md:flex items-center gap-3 ml-auto pl-4">
|
||||
<div class="flex gap-4">
|
||||
@if (userService.userState$ | async; as userState) {
|
||||
<li>
|
||||
@if (userState.user?.permissions?.canManipulateLibrary || userState.user?.permissions?.admin) {
|
||||
@if (userState.user?.permissions?.canAccessBookdrop || userState.user?.permissions?.admin) {
|
||||
<li>
|
||||
<a class="topbar-item" (click)="navigateToBookdrop()" pTooltip="Bookdrop" tooltipPosition="bottom">
|
||||
<i class="pi pi-inbox text-surface-100"></i>
|
||||
</a>
|
||||
}
|
||||
</li>
|
||||
<li>
|
||||
@if (userState.user?.permissions?.canManipulateLibrary || userState.user?.permissions?.admin) {
|
||||
</li>
|
||||
}
|
||||
@if (userState.user?.permissions?.canManageLibrary || userState.user?.permissions?.admin) {
|
||||
<li>
|
||||
<a class="topbar-item" (click)="openLibraryCreatorDialog()" pTooltip="Create New Library" tooltipPosition="bottom">
|
||||
<i class="pi pi-plus-circle text-surface-100"></i>
|
||||
</a>
|
||||
}
|
||||
</li>
|
||||
<li>
|
||||
@if (userState.user?.permissions?.canUpload || userState.user?.permissions?.admin) {
|
||||
</li>
|
||||
}
|
||||
@if (userState.user?.permissions?.canUpload || userState.user?.permissions?.admin) {
|
||||
<li>
|
||||
<a class="topbar-item" (click)="openFileUploadDialog()" pTooltip="Upload Book" tooltipPosition="bottom">
|
||||
<i class="pi pi-upload text-surface-100"></i>
|
||||
</a>
|
||||
</li>
|
||||
}
|
||||
}
|
||||
@if (hasStatsAccess) {
|
||||
<li>
|
||||
<button
|
||||
class="topbar-item"
|
||||
(click)="shouldShowStatsMenu ? statsMenu.toggle($event) : handleStatsButtonClick($event)"
|
||||
[pTooltip]="statsTooltip"
|
||||
tooltipPosition="bottom">
|
||||
<i class="pi pi-chart-bar text-surface-100"></i>
|
||||
</button>
|
||||
@if (shouldShowStatsMenu) {
|
||||
<p-menu #statsMenu [model]="statsMenuItems" [popup]="true" appendTo="body" />
|
||||
}
|
||||
</li>
|
||||
}
|
||||
<li>
|
||||
<button
|
||||
class="topbar-item"
|
||||
(click)="statsMenu.toggle($event)"
|
||||
pTooltip="Stats"
|
||||
tooltipPosition="bottom">
|
||||
<i class="pi pi-chart-bar text-surface-100"></i>
|
||||
</button>
|
||||
<p-menu #statsMenu [model]="statsMenuItems" [popup]="true" appendTo="body" />
|
||||
</li>
|
||||
@if (userService.userState$ | async; as userState) {
|
||||
<li>
|
||||
@if (userState.user?.permissions?.canManipulateLibrary || userState.user?.permissions?.admin) {
|
||||
@if (userState.user?.permissions?.canManageLibrary || userState.user?.permissions?.admin) {
|
||||
<li>
|
||||
<a class="topbar-item" (click)="navigateToMetadataManager()" pTooltip="Metadata Manager" tooltipPosition="bottom">
|
||||
<i class="pi pi-sparkles text-surface-100"></i>
|
||||
</a>
|
||||
}
|
||||
</li>
|
||||
</li>
|
||||
}
|
||||
}
|
||||
<li>
|
||||
<a class="topbar-item" (click)="navigateToSettings()" pTooltip="Settings" tooltipPosition="bottom">
|
||||
@@ -140,11 +144,18 @@
|
||||
<i class="pi pi-info-circle text-surface-100"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<button class="topbar-item" (click)="openUserProfileDialog()" pTooltip="Profile" tooltipPosition="bottom">
|
||||
<i class="pi pi-user text-surface-100"></i>
|
||||
</button>
|
||||
</li>
|
||||
|
||||
<!-- Show Profile only to demo users -->
|
||||
@if (userService.userState$ | async; as userState) {
|
||||
@if (!userState.user?.permissions?.demoUser) {
|
||||
<li>
|
||||
<button class="topbar-item" (click)="openUserProfileDialog()" pTooltip="Profile" tooltipPosition="bottom">
|
||||
<i class="pi pi-user text-surface-100"></i>
|
||||
</button>
|
||||
</li>
|
||||
}
|
||||
}
|
||||
|
||||
<li>
|
||||
<button class="topbar-item" (click)="logout()" pTooltip="Logout" tooltipPosition="left">
|
||||
<i class="pi pi-sign-out text-surface-100"></i>
|
||||
@@ -162,16 +173,7 @@
|
||||
<p-popover #mobileMenu>
|
||||
<ul class="flex flex-col gap-1 w-48">
|
||||
@if (userService.userState$ | async; as userState) {
|
||||
@if (userState.user?.permissions?.canManipulateLibrary || userState.user?.permissions?.admin) {
|
||||
<li>
|
||||
<button
|
||||
class="flex items-center gap-2 w-full text-left p-2 hover:bg-surface-200 dark:hover:bg-surface-700 rounded"
|
||||
(click)="openLibraryCreatorDialog(); mobileMenu.hide()"
|
||||
>
|
||||
<i class="pi pi-plus-circle text-surface-100"></i>
|
||||
Create Library
|
||||
</button>
|
||||
</li>
|
||||
@if (userState.user?.permissions?.canAccessBookdrop || userState.user?.permissions?.admin) {
|
||||
<li>
|
||||
<button
|
||||
class="flex items-center gap-2 w-full text-left p-2 hover:bg-surface-200 dark:hover:bg-surface-700 rounded"
|
||||
@@ -182,6 +184,17 @@
|
||||
</button>
|
||||
</li>
|
||||
}
|
||||
@if (userState.user?.permissions?.canManageLibrary || userState.user?.permissions?.admin) {
|
||||
<li>
|
||||
<button
|
||||
class="flex items-center gap-2 w-full text-left p-2 hover:bg-surface-200 dark:hover:bg-surface-700 rounded"
|
||||
(click)="openLibraryCreatorDialog(); mobileMenu.hide()"
|
||||
>
|
||||
<i class="pi pi-plus-circle text-surface-100"></i>
|
||||
Create Library
|
||||
</button>
|
||||
</li>
|
||||
}
|
||||
@if (userState.user?.permissions?.canUpload || userState.user?.permissions?.admin) {
|
||||
<li>
|
||||
<button
|
||||
@@ -194,16 +207,33 @@
|
||||
</li>
|
||||
}
|
||||
}
|
||||
<li>
|
||||
<button
|
||||
class="flex items-center gap-2 w-full text-left p-2 hover:bg-surface-200 dark:hover:bg-surface-700 rounded"
|
||||
(click)="statsMenu.toggle($event)"
|
||||
>
|
||||
<i class="pi pi-chart-bar text-surface-100"></i>
|
||||
Charts
|
||||
</button>
|
||||
<p-menu #statsMenuMobile [model]="statsMenuItems" [popup]="true" />
|
||||
</li>
|
||||
@if (hasStatsAccess) {
|
||||
<li>
|
||||
<button
|
||||
class="flex items-center gap-2 w-full text-left p-2 hover:bg-surface-200 dark:hover:bg-surface-700 rounded"
|
||||
(click)="shouldShowStatsMenu ? statsMenuMobile.toggle($event) : handleStatsButtonClick($event)"
|
||||
>
|
||||
<i class="pi pi-chart-bar text-surface-100"></i>
|
||||
Charts
|
||||
</button>
|
||||
@if (shouldShowStatsMenu) {
|
||||
<p-menu #statsMenuMobile [model]="statsMenuItems" [popup]="true" />
|
||||
}
|
||||
</li>
|
||||
}
|
||||
@if (userService.userState$ | async; as userState) {
|
||||
@if (userState.user?.permissions?.canManageLibrary || userState.user?.permissions?.admin) {
|
||||
<li>
|
||||
<button
|
||||
class="flex items-center gap-2 w-full text-left p-2 hover:bg-surface-200 dark:hover:bg-surface-700 rounded"
|
||||
(click)="navigateToMetadataManager(); mobileMenu.hide()"
|
||||
>
|
||||
<i class="pi pi-sparkles text-surface-100"></i>
|
||||
Metadata Manager
|
||||
</button>
|
||||
</li>
|
||||
}
|
||||
}
|
||||
<li>
|
||||
<button
|
||||
class="flex items-center gap-2 w-full text-left p-2 hover:bg-surface-200 dark:hover:bg-surface-700 rounded"
|
||||
@@ -232,15 +262,21 @@
|
||||
Support BookLore
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button
|
||||
class="flex items-center gap-2 w-full text-left p-2 hover:bg-surface-200 dark:hover:bg-surface-700 rounded"
|
||||
(click)="openUserProfileDialog(); mobileMenu.hide()"
|
||||
>
|
||||
<i class="pi pi-user text-surface-100"></i>
|
||||
Profile
|
||||
</button>
|
||||
</li>
|
||||
|
||||
@if (userService.userState$ | async; as userState) {
|
||||
@if (!userState.user?.permissions?.demoUser) {
|
||||
<li>
|
||||
<button
|
||||
class="flex items-center gap-2 w-full text-left p-2 hover:bg-surface-200 dark:hover:bg-surface-700 rounded"
|
||||
(click)="openUserProfileDialog(); mobileMenu.hide()"
|
||||
>
|
||||
<i class="pi pi-user text-surface-100"></i>
|
||||
Profile
|
||||
</button>
|
||||
</li>
|
||||
}
|
||||
}
|
||||
|
||||
<li>
|
||||
<button
|
||||
class="flex items-center gap-2 w-full text-left p-2 hover:bg-surface-200 dark:hover:bg-surface-700 rounded"
|
||||
|
||||
@@ -57,6 +57,8 @@ export class AppTopBarComponent implements OnDestroy {
|
||||
@ViewChild('menubutton') menuButton!: ElementRef;
|
||||
@ViewChild('topbarmenubutton') topbarMenuButton!: ElementRef;
|
||||
@ViewChild('topbarmenu') menu!: ElementRef;
|
||||
@ViewChild('statsMenu') statsMenu: any;
|
||||
@ViewChild('statsMenuMobile') statsMenuMobile: any;
|
||||
|
||||
isMenuVisible = true;
|
||||
progressHighlight = false;
|
||||
@@ -83,7 +85,6 @@ export class AppTopBarComponent implements OnDestroy {
|
||||
private bookdropFileService: BookdropFileService,
|
||||
private dialogLauncher: DialogLauncherService
|
||||
) {
|
||||
this.initializeStatsMenu();
|
||||
this.subscribeToMetadataProgress();
|
||||
this.subscribeToNotifications();
|
||||
|
||||
@@ -104,6 +105,12 @@ export class AppTopBarComponent implements OnDestroy {
|
||||
this.updateCompletedTaskCount();
|
||||
this.updateTaskVisibilityWithBookdrop();
|
||||
});
|
||||
|
||||
this.userService.userState$
|
||||
.pipe(takeUntil(this.destroy$))
|
||||
.subscribe(() => {
|
||||
this.initializeStatsMenu();
|
||||
});
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
@@ -158,6 +165,16 @@ export class AppTopBarComponent implements OnDestroy {
|
||||
this.authService.logout();
|
||||
}
|
||||
|
||||
handleStatsButtonClick(event: Event) {
|
||||
if (this.statsMenuItems.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.statsMenuItems.length === 1) {
|
||||
this.statsMenuItems[0].command?.({originalEvent: event, item: this.statsMenuItems[0]});
|
||||
}
|
||||
}
|
||||
|
||||
private subscribeToMetadataProgress() {
|
||||
this.metadataProgressService.progressUpdates$
|
||||
.pipe(takeUntil(this.destroy$))
|
||||
@@ -200,18 +217,44 @@ export class AppTopBarComponent implements OnDestroy {
|
||||
}
|
||||
|
||||
private initializeStatsMenu() {
|
||||
this.statsMenuItems = [
|
||||
{
|
||||
const userState = this.userService.userStateSubject.value;
|
||||
const user = userState.user;
|
||||
|
||||
this.statsMenuItems = [];
|
||||
|
||||
if (user?.permissions?.canAccessLibraryStats || user?.permissions?.admin) {
|
||||
this.statsMenuItems.push({
|
||||
label: 'Library Stats',
|
||||
icon: 'pi pi-chart-line',
|
||||
command: () => this.navigateToStats()
|
||||
},
|
||||
{
|
||||
});
|
||||
}
|
||||
|
||||
if (user?.permissions?.canAccessUserStats || user?.permissions?.admin) {
|
||||
this.statsMenuItems.push({
|
||||
label: 'Reading Stats',
|
||||
icon: 'pi pi-users',
|
||||
command: () => this.navigateToUserStats()
|
||||
}
|
||||
];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
get hasStatsAccess(): boolean {
|
||||
return this.statsMenuItems.length > 0;
|
||||
}
|
||||
|
||||
get shouldShowStatsMenu(): boolean {
|
||||
return this.statsMenuItems.length > 1;
|
||||
}
|
||||
|
||||
get statsTooltip(): string {
|
||||
if (this.statsMenuItems.length === 0) {
|
||||
return 'Stats';
|
||||
}
|
||||
if (this.statsMenuItems.length === 1) {
|
||||
return this.statsMenuItems[0].label || 'Stats';
|
||||
}
|
||||
return 'Stats';
|
||||
}
|
||||
|
||||
get iconClass(): string {
|
||||
|
||||
@@ -184,7 +184,7 @@ export class DialogLauncherService {
|
||||
openIconPickerDialog(): DynamicDialogRef | null {
|
||||
return this.openDialog(IconPickerComponent, {
|
||||
header: 'Choose an Icon',
|
||||
styleClass: 'dialog-maximal',
|
||||
styleClass: 'dialog-medium',
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user