feat(console): profile initializers, contributors for grants (#229)

* resourceowner header, i18n

* password policy validators, roles required field

* use angular pattern instead of custom validator

* user detail fixes, mfa qr code, add org

* use mgmt for mfa list

* fetch owned projects

* search project

* seperate owned from granted projects

* lint

* fix granted project grid

* refactor project detail

* disable zitadel apps

* refactor project contributors

* changed i18n

* hide meta nav

* mobile meta layout

* refactor contributor name

* refactor org contributors

* org i18n, org member detail view

* fix uninitialized phone, email

* fix: create role, add contributors to granted pjs

* initialize address

* contributor 18n

* add tab module
This commit is contained in:
Max Peintner
2020-06-17 07:41:16 +02:00
committed by GitHub
parent 6fa62ccd0a
commit dfe6d0deb4
17 changed files with 80 additions and 59 deletions
@@ -68,16 +68,16 @@
<app-card *ngIf="profile" title="{{ 'USER.LOGINMETHODS.TITLE' | translate }}"
description="{{ 'USER.LOGINMETHODS.DESCRIPTION' | translate }}">
<div class="method-col">
<div *ngIf="email" class="method-row">
<div class="method-row">
<span class="label">{{ 'USER.EMAIL' | translate }}</span>
<ng-container *ngIf="!emailEditState; else emailEdit">
<div class="actions">
<span class="name">{{email.email}}</span>
<mat-icon *ngIf="email.isemailverified" color="primary" aria-hidden="false"
<span class="name">{{email?.email}}</span>
<mat-icon *ngIf="email?.isemailverified" color="primary" aria-hidden="false"
aria-label="verified icon">
check_circle_outline</mat-icon>
<ng-container *ngIf="email.email && !email.isemailverified">
<ng-container *ngIf="email?.email && !email?.isemailverified">
<mat-icon color="warn" aria-hidden="false" aria-label="not verified icon">highlight_off
</mat-icon>
<a class="verify" matTooltip="{{'USER.LOGINMETHODS.EMAIL.RESEND' | translate}}"
@@ -104,16 +104,16 @@
</ng-template>
</div>
<div *ngIf="phone" class="method-row">
<div class="method-row">
<span class="label">{{ 'USER.PHONE' | translate }}</span>
<ng-container *ngIf="!phoneEditState; else phoneEdit">
<div class="actions">
<span class="name">{{phone.phone}}</span>
<mat-icon *ngIf="phone.isPhoneVerified" color="primary" aria-hidden="false"
<span class="name">{{phone?.phone}}</span>
<mat-icon *ngIf="phone?.isPhoneVerified" color="primary" aria-hidden="false"
aria-label="verified icon">
check_circle_outline</mat-icon>
<ng-container *ngIf="phone.phone && !phone.isPhoneVerified">
<ng-container *ngIf="phone?.phone && !phone?.isPhoneVerified">
<mat-icon color="warn" aria-hidden="false" aria-label="not verified icon">highlight_off
</mat-icon>
<a class="verify" matTooltip="{{'USER.LOGINMETHODS.ENTERCODE_DESC' | translate}}"
@@ -127,7 +127,7 @@
<button (click)="phoneEditState = true" mat-icon-button>
<mat-icon>edit</mat-icon>
</button>
<button *ngIf="phone.phone" (click)="deletePhone()" mat-icon-button>
<button *ngIf="phone?.phone" (click)="deletePhone()" mat-icon-button>
<mat-icon>delete_outline</mat-icon>
</button>
</div>
@@ -150,7 +150,7 @@
<app-auth-user-mfa *ngIf="profile" [profile]="profile"></app-auth-user-mfa>
<app-card title="{{ 'USER.ADDRESS.TITLE' | translate }}" *ngIf="address && profile">
<app-card title="{{ 'USER.ADDRESS.TITLE' | translate }}" *ngIf="profile">
<form [formGroup]="addressForm" (ngSubmit)="saveAddress()">
<div class="content">
<mat-form-field class="formfield">