mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
* Add restricted view and manage permission to access * Update changelogpull/7743/head
committed by
GitHub
8 changed files with 120 additions and 26 deletions
@ -1,2 +1,5 @@ |
|||||
export type AccessLevel = |
export type AccessLevel = |
||||
'CREATE_READ_UPDATE_DELETE' | 'READ' | 'READ_RESTRICTED'; |
| 'CREATE_READ_RESTRICTED_UPDATE_DELETE' |
||||
|
| 'CREATE_READ_UPDATE_DELETE' |
||||
|
| 'READ' |
||||
|
| 'READ_RESTRICTED'; |
||||
|
|||||
@ -1,24 +1,12 @@ |
|||||
import { AccessLevel } from '@ghostfolio/common/types'; |
import { AccessLevel } from '@ghostfolio/common/types'; |
||||
|
|
||||
import { ChangeDetectionStrategy, Component, input } from '@angular/core'; |
import { ChangeDetectionStrategy, Component, input } from '@angular/core'; |
||||
import { IonIcon } from '@ionic/angular/standalone'; |
|
||||
import { addIcons } from 'ionicons'; |
|
||||
import { |
|
||||
createOutline, |
|
||||
lockClosedOutline, |
|
||||
lockOpenOutline |
|
||||
} from 'ionicons/icons'; |
|
||||
|
|
||||
@Component({ |
@Component({ |
||||
changeDetection: ChangeDetectionStrategy.OnPush, |
changeDetection: ChangeDetectionStrategy.OnPush, |
||||
imports: [IonIcon], |
|
||||
selector: 'gf-access-level-icon', |
selector: 'gf-access-level-icon', |
||||
templateUrl: './access-level-icon.component.html' |
templateUrl: './access-level-icon.component.html' |
||||
}) |
}) |
||||
export class GfAccessLevelIconComponent { |
export class GfAccessLevelIconComponent { |
||||
public readonly accessLevel = input.required<AccessLevel>(); |
public readonly accessLevel = input.required<AccessLevel>(); |
||||
|
|
||||
public constructor() { |
|
||||
addIcons({ createOutline, lockClosedOutline, lockOpenOutline }); |
|
||||
} |
|
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue