Add access control rework
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
/* eslint-disable @typescript-eslint/member-ordering */
|
||||
import { Component, computed, inject } from '@angular/core';
|
||||
import {
|
||||
Component,
|
||||
computed,
|
||||
inject
|
||||
} from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { NgIcon, provideIcons } from '@ng-icons/core';
|
||||
@@ -16,10 +20,7 @@ import { NotificationsFacade } from '../../application/notifications.facade';
|
||||
@Component({
|
||||
selector: 'app-notifications-settings',
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
NgIcon
|
||||
],
|
||||
imports: [CommonModule, NgIcon],
|
||||
viewProviders: [
|
||||
provideIcons({
|
||||
lucideBell,
|
||||
@@ -49,10 +50,12 @@ export class NotificationsSettingsComponent {
|
||||
|
||||
return channels.length > 0
|
||||
? channels
|
||||
: [{ id: 'general',
|
||||
name: 'general',
|
||||
type: 'text',
|
||||
position: 0 }];
|
||||
: [
|
||||
{ id: 'general',
|
||||
name: 'general',
|
||||
type: 'text',
|
||||
position: 0 }
|
||||
];
|
||||
}
|
||||
|
||||
onNotificationsEnabledChange(event: Event): void {
|
||||
|
||||
Reference in New Issue
Block a user