feat(console): deactivate, reactivate org, fix signedout route (#3834)

* org detail

* feat: org deactivate, reactivate

* statehandler includes instead of startsWith

* fix signout route

* Update console/src/assets/i18n/de.json

Co-authored-by: Livio Spring <[email protected]>

* french

Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
Max Peintner
2022-07-08 06:58:23 +00:00
committed by GitHub
co-authored by Livio Spring
parent 91771bc49b
commit 190a454140
22 changed files with 316 additions and 202 deletions
@@ -4,14 +4,14 @@ import { RouterModule, Routes } from '@angular/router';
import { SignedoutComponent } from './signedout.component';
const routes: Routes = [
{
path: '',
component: SignedoutComponent,
},
{
path: '',
component: SignedoutComponent,
},
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class SignedoutRoutingModule { }
export class SignedoutRoutingModule {}
@@ -5,11 +5,18 @@
<ng-template #lighttheme>
<img alt="zitadel logo" src="../../../assets/images/zitadel-logo-dark.svg" />
</ng-template>
<p class="cnsl-secondary-text">{{'USER.SIGNEDOUT' | translate}}</p>
<p class="cnsl-secondary-text">{{ 'USER.SIGNEDOUT' | translate }}</p>
<button matTooltip="{{'ACTIONS.LOGIN' | translate}}" color="primary" mat-raised-button
[routerLink]="[ '/users/me' ]">{{'USER.SIGNEDOUT_BTN' |
translate}} <i class="las la-sign-in-alt"></i></button>
<button
class="cnsl-action-button"
matTooltip="{{ 'ACTIONS.LOGIN' | translate }}"
color="primary"
mat-raised-button
[routerLink]="['/users/me']"
>
<i class="las la-sign-in-alt"></i>
<span>{{ 'USER.SIGNEDOUT_BTN' | translate }}</span>
</button>
</div>
</div>
</div>
</div>
@@ -9,6 +9,7 @@
display: flex;
flex-direction: column;
align-items: center;
margin-top: 50px;
h1 {
font-size: 3rem;
@@ -24,16 +25,6 @@
img {
height: 100px;
max-width: 170px;
margin-bottom: 2rem;
}
button {
display: block;
padding: 0.5rem 4rem;
i {
margin-left: 0.5rem;
}
}
}
}
@@ -1,4 +1,5 @@
import { Component } from '@angular/core';
import { ThemeService } from 'src/app/services/theme.service';
@Component({
selector: 'cnsl-signedout',
@@ -8,7 +9,9 @@ import { Component } from '@angular/core';
export class SignedoutComponent {
public dark: boolean = true;
constructor() {
constructor(themeService: ThemeService) {
themeService.loadPrivateLabelling();
const theme = localStorage.getItem('theme');
this.dark = theme === 'dark-theme' ? true : theme === 'light-theme' ? false : true;
}
@@ -1,15 +1,15 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatTooltipModule } from '@angular/material/tooltip';
import { TranslateModule } from '@ngx-translate/core';
import { SharedModule } from 'src/app/modules/shared/shared.module';
import { SignedoutRoutingModule } from './signedout-routing.module';
import { SignedoutComponent } from './signedout.component';
@NgModule({
declarations: [],
imports: [
CommonModule,
SignedoutRoutingModule,
SharedModule,
],
declarations: [SignedoutComponent],
imports: [CommonModule, SignedoutRoutingModule, MatButtonModule, MatTooltipModule, TranslateModule, SharedModule],
})
export class SignedoutModule { }
export class SignedoutModule {}