fix: console v2 (#1454)

* some issues

* passwordless, mfa

* mfa, project fixes, login policy

* user table, auth service, interceptor
This commit is contained in:
Max Peintner
2021-03-23 09:50:58 +01:00
committed by GitHub
parent d5f0c2375a
commit 7768759906
40 changed files with 261 additions and 157 deletions
@@ -13,15 +13,15 @@
(click)="navigateToProject(item.id, $event)"
[ngClass]="{ inactive: item.state !== ProjectState.PROJECT_STATE_ACTIVE}">
<div class="text-part">
<span *ngIf="item.changeDate" class="top">{{'PROJECT.PAGES.LASTMODIFIED' | translate}}
<span *ngIf="item.details.changeDate" class="top">{{'PROJECT.PAGES.LASTMODIFIED' | translate}}
{{
item.changeDate | timestampToDate | localizedDate: 'EEE dd. MMM, HH:mm'
item.details.changeDate | timestampToDate | localizedDate: 'EEE dd. MMM, HH:mm'
}}</span>
<span class="name" *ngIf="item.name">{{ item.name }}</span>
<span *ngIf="item.changeDate" class="created">{{'PROJECT.PAGES.CREATEDON' | translate}}
<span *ngIf="item.details.changeDate" class="created">{{'PROJECT.PAGES.CREATEDON' | translate}}
{{
item.creationDate | timestampToDate | localizedDate: 'EEE dd. MMM, HH:mm'
item.details.creationDate | timestampToDate | localizedDate: 'EEE dd. MMM, HH:mm'
}}</span>
<span class="fill-space"></span>
</div>
@@ -37,7 +37,7 @@
position: relative;
z-index: 100;
margin: 1rem;
flex-basis: 250px;
flex-basis: 260px;
display: flex;
text-decoration: none;
cursor: pointer;
@@ -65,7 +65,7 @@
display: flex;
flex-direction: column;
min-height: 70px;
padding: .5rem 0;
padding: .5rem 1rem 0 0;
.top {
font-size: .8rem;
@@ -168,7 +168,7 @@
.add-project-button {
z-index: 100;
flex-basis: 250px;
flex-basis: 260px;
cursor: pointer;
display: flex;
justify-content: center;
@@ -16,7 +16,7 @@ const routes: Routes = [
loadChildren: () => import('../project-create/project-create.module').then(m => m.ProjectCreateModule),
canActivate: [RoleGuard],
data: {
roles: ['project.write'],
roles: ['project.create'],
},
},
{