mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-23 21:28:47 +00:00
* es lint * modify tsconfig, auto lint some stuff * lint * lint * lint * lint * html ts lint * lint * lint, tsconfig * fix project delete, state table * eslint config, remove cnslHint directive * mfa selector, info row fixes * lint * fix login policy, granted orgs table state, lint Co-authored-by: Florian Forster <[email protected]>
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
import { Component } from '@angular/core';
|
|
import { GrpcAuthService } from 'src/app/services/grpc-auth.service';
|
|
|
|
@Component({
|
|
selector: 'cnsl-home',
|
|
templateUrl: './home.component.html',
|
|
styleUrls: ['./home.component.scss'],
|
|
})
|
|
export class HomeComponent {
|
|
public dark: boolean = true;
|
|
public firstStepsDismissed: boolean = false;
|
|
public quickstartsDismissed: boolean = false;
|
|
|
|
constructor(public authService: GrpcAuthService) {
|
|
const theme = localStorage.getItem('theme');
|
|
this.dark = theme === 'dark-theme' ? true : theme === 'light-theme' ? false : true;
|
|
|
|
this.firstStepsDismissed = localStorage.getItem('firstStartDismissed') === 'true' ? true : false;
|
|
this.quickstartsDismissed = localStorage.getItem('quickstartsDismissed') === 'true' ? true : false;
|
|
}
|
|
|
|
dismissFirstSteps(event: Event): void {
|
|
event.preventDefault();
|
|
localStorage.setItem('firstStartDismissed', 'true');
|
|
this.firstStepsDismissed = true;
|
|
}
|
|
|
|
dismissQuickstarts(event: Event): void {
|
|
event.preventDefault();
|
|
localStorage.setItem('quickstartsDismissed', 'true');
|
|
this.quickstartsDismissed = true;
|
|
}
|
|
}
|