Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | 11x 11x 10x 10x 10x 10x 10x 10x 10x 10x | import { AfterViewInit, Component, ElementRef } from '@angular/core';
import { RouterLink } from '@angular/router';
import { MobxAngularModule } from 'mobx-angular';
import { AccountService } from '../../service/account.service';
import { AdminService } from '../../service/admin.service';
import { ConfigService } from '../../service/config.service';
import { HelpService } from '../../service/help.service';
import { Store } from '../../store/store';
@Component({
selector: 'app-settings',
templateUrl: './settings.component.html',
styleUrls: ['./settings.component.scss'],
host: { 'class': 'settings' },
imports: [MobxAngularModule, RouterLink]
})
export class SettingsComponentI implements AfterViewInit {
constructor(
public admin: AdminService,
public config: ConfigService,
public store: Store,
public account: AccountService,
private el: ElementRef,
private help: HelpService,
) {
Iif (admin.getTemplate('user') && admin.getPlugin('plugin/inbox') && store.account.signedIn) {
account.checkNotifications();
}
}
ngAfterViewInit() {
this.help.pushStep(this.el?.nativeElement, $localize`Change your settings.`);
}
get fullUserTagAndRole() {
return this.store.account.tag + ' (' + this.store.account.role + ')';
}
get shortUserTag() {
return this.store.account.localTag.replace('+', '').replace('user/', '');
}
}
|