fix(console): bugs and some imperfections (#1557)

* org refresh, mfa name attribute

* fix org change
This commit is contained in:
Max Peintner
2021-04-08 13:11:12 +02:00
committed by GitHub
parent e1a930d535
commit e7913bde59
15 changed files with 41 additions and 23 deletions
@@ -6,6 +6,8 @@
<app-card title="{{ 'ORG.DOMAINS.TITLE' | translate }}"
description="{{ 'ORG.DOMAINS.DESCRIPTION' | translate }}">
<button (click)="loadDomains()" card-actions mat-icon-button><mat-icon>refresh</mat-icon></button>
<div *ngFor="let domain of domains" class="domain">
<span *ngIf="canwrite$ | async" (click)="verifyDomain(domain)"
class="title">{{domain.domainName}}</span>
@@ -6,6 +6,7 @@ h2 {
font-size: 1.2rem;
letter-spacing: .05em;
text-transform: uppercase;
margin-top: 2rem;
}
.top-desc {
@@ -113,12 +113,14 @@ export class OrgDetailComponent implements OnInit {
dialogRef.afterClosed().subscribe(resp => {
if (resp) {
this.mgmtService.addOrgDomain(resp).then(resp => {
const newDomain = resp;
// TODO send domainname only
// this.verifyDomain(newDomainView.toObject());
this.mgmtService.addOrgDomain(resp).then(() => {
this.toast.showInfo('ORG.TOAST.DOMAINADDED', true);
setTimeout(() => {
this.loadDomains();
}, 1000);
}).catch(error => {
this.toast.showError(error);
});
}
});