mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-20 20:08:46 +00:00
fix(console): cleanup structure, role guard, paginated requests, cleanup policies, toast i18n, view timestamp, preloading strategy, maennchenfindings, fix passwordchange (#483)
* routes, move grid to list comopnent * rename app list component, move to project sub * add owned-project-detail child module * seperate pipes * set password validators only if needed * create org initialize without pwd * no caps * self xss message * fix user table * fix project member paginator * fix project members pagination, user grant pag * move project grants, fix imports * fix owned project detail imports * use pipe and directives * ng content bindings, rem custom schemas * i18n, fix error toast parameter * toast i18n * side background * fix: sequence, add timestamp * audit * fix metanav background * org domain label * cleanup policy component * shorten user grant roles, mk cols visible as bind * move user components, show otp only if available * preload modules * fix password change * fix org create buttons * class css
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
|
||||
import { HasRolePipe } from './has-role.pipe';
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
HasRolePipe,
|
||||
],
|
||||
imports: [
|
||||
CommonModule,
|
||||
],
|
||||
exports: [
|
||||
HasRolePipe,
|
||||
],
|
||||
})
|
||||
export class HasRolePipeModule { }
|
||||
@@ -1,16 +1,16 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { AuthUserService } from '../services/auth-user.service';
|
||||
|
||||
@Pipe({
|
||||
name: 'hasRole',
|
||||
pure: false,
|
||||
})
|
||||
export class HasRolePipe implements PipeTransform {
|
||||
|
||||
constructor(private authUserService: AuthUserService) { }
|
||||
|
||||
public transform(values: string[], each: boolean = false): any {
|
||||
public transform(values: string[], each: boolean = false): Observable<boolean> {
|
||||
return this.authUserService.isAllowed(values, each);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-7
@@ -2,16 +2,12 @@ import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { MomentModule } from 'ngx-moment';
|
||||
|
||||
import { HasRolePipe } from './has-role.pipe';
|
||||
import { LocalizedDatePipe } from './localized-date.pipe';
|
||||
import { TimestampToDatePipe } from './timestamp-to-date.pipe';
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
LocalizedDatePipe,
|
||||
TimestampToDatePipe,
|
||||
HasRolePipe,
|
||||
],
|
||||
imports: [
|
||||
CommonModule,
|
||||
@@ -19,8 +15,6 @@ import { TimestampToDatePipe } from './timestamp-to-date.pipe';
|
||||
],
|
||||
exports: [
|
||||
LocalizedDatePipe,
|
||||
TimestampToDatePipe,
|
||||
HasRolePipe,
|
||||
],
|
||||
})
|
||||
export class PipesModule { }
|
||||
export class LocalizedDatePipeModule { }
|
||||
@@ -4,7 +4,6 @@ import { TranslateService } from '@ngx-translate/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'localizedDate',
|
||||
pure: false,
|
||||
})
|
||||
export class LocalizedDatePipe implements PipeTransform {
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
|
||||
import { TimestampToDatePipe } from './timestamp-to-date.pipe';
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
TimestampToDatePipe,
|
||||
],
|
||||
imports: [
|
||||
CommonModule,
|
||||
],
|
||||
exports: [
|
||||
TimestampToDatePipe,
|
||||
],
|
||||
})
|
||||
export class TimestampToDatePipeModule { }
|
||||
Reference in New Issue
Block a user