Revert "migrate weak passwords report component"
This reverts commit e8e9b01997
.
This commit is contained in:
parent
fb501cb44d
commit
8cd2421cb0
|
@ -11,13 +11,13 @@
|
||||||
<span class="sr-only">{{ "loading" | i18n }}</span>
|
<span class="sr-only">{{ "loading" | i18n }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-4" *ngIf="hasLoaded">
|
<div class="mt-4" *ngIf="hasLoaded">
|
||||||
<bit-callout type="success" title="{{ 'goodNews' | i18n }}" *ngIf="!ciphers.length">
|
<app-callout type="success" title="{{ 'goodNews' | i18n }}" *ngIf="!ciphers.length">
|
||||||
{{ "noWeakPasswords" | i18n }}
|
{{ "noWeakPasswords" | i18n }}
|
||||||
</bit-callout>
|
</app-callout>
|
||||||
<ng-container *ngIf="ciphers.length">
|
<ng-container *ngIf="ciphers.length">
|
||||||
<bit-callout type="danger" title="{{ 'weakPasswordsFound' | i18n }}">
|
<app-callout type="danger" title="{{ 'weakPasswordsFound' | i18n }}">
|
||||||
{{ "weakPasswordsFoundReportDesc" | i18n: (ciphers.length | number) : vaultMsg }}
|
{{ "weakPasswordsFoundReportDesc" | i18n: (ciphers.length | number) : vaultMsg }}
|
||||||
</bit-callout>
|
</app-callout>
|
||||||
<bit-toggle-group
|
<bit-toggle-group
|
||||||
*ngIf="showFilterToggle && !isAdminConsoleActive"
|
*ngIf="showFilterToggle && !isAdminConsoleActive"
|
||||||
[selected]="filterOrgStatus$ | async"
|
[selected]="filterOrgStatus$ | async"
|
||||||
|
@ -31,33 +31,36 @@
|
||||||
</bit-toggle>
|
</bit-toggle>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</bit-toggle-group>
|
</bit-toggle-group>
|
||||||
<bit-table [dataSource]="dataSource">
|
<table class="table table-hover table-list table-ciphers">
|
||||||
<ng-container header *ngIf="!isAdminConsoleActive">
|
<thead
|
||||||
|
class="tw-border-0 tw-border-b-2 tw-border-solid tw-border-secondary-300 tw-font-bold tw-text-muted"
|
||||||
|
*ngIf="!isAdminConsoleActive"
|
||||||
|
>
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th>{{ "name" | i18n }}</th>
|
<th>{{ "name" | i18n }}</th>
|
||||||
<th>{{ "owner" | i18n }}</th>
|
<th>{{ "owner" | i18n }}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</ng-container>
|
</thead>
|
||||||
<ng-template body let-rows$>
|
<tbody>
|
||||||
<tr bitRow *ngFor="let r of rows$ | async">
|
<tr *ngFor="let c of ciphers">
|
||||||
<td bitCell>
|
<td class="table-list-icon">
|
||||||
<app-vault-icon [cipher]="r"></app-vault-icon>
|
<app-vault-icon [cipher]="c"></app-vault-icon>
|
||||||
</td>
|
</td>
|
||||||
<td class="reduced-lh wrap">
|
<td class="reduced-lh wrap">
|
||||||
<ng-container *ngIf="!organization || canManageCipher(r); else cantManage">
|
<ng-container *ngIf="!organization || canManageCipher(c); else cantManage">
|
||||||
<a
|
<a
|
||||||
href="#"
|
href="#"
|
||||||
appStopClick
|
appStopClick
|
||||||
(click)="selectCipher(r)"
|
(click)="selectCipher(c)"
|
||||||
title="{{ 'editItem' | i18n }}"
|
title="{{ 'editItem' | i18n }}"
|
||||||
>{{ r.name }}</a
|
>{{ c.name }}</a
|
||||||
>
|
>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-template #cantManage>
|
<ng-template #cantManage>
|
||||||
<span>{{ r.name }}</span>
|
<span>{{ c.name }}</span>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-container *ngIf="!organization && r.organizationId">
|
<ng-container *ngIf="!organization && c.organizationId">
|
||||||
<i
|
<i
|
||||||
class="bwi bwi-collection"
|
class="bwi bwi-collection"
|
||||||
appStopProp
|
appStopProp
|
||||||
|
@ -66,7 +69,7 @@
|
||||||
></i>
|
></i>
|
||||||
<span class="sr-only">{{ "shared" | i18n }}</span>
|
<span class="sr-only">{{ "shared" | i18n }}</span>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container *ngIf="r.hasAttachments">
|
<ng-container *ngIf="c.hasAttachments">
|
||||||
<i
|
<i
|
||||||
class="bwi bwi-paperclip"
|
class="bwi bwi-paperclip"
|
||||||
appStopProp
|
appStopProp
|
||||||
|
@ -76,26 +79,26 @@
|
||||||
<span class="sr-only">{{ "attachments" | i18n }}</span>
|
<span class="sr-only">{{ "attachments" | i18n }}</span>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<br />
|
<br />
|
||||||
<small>{{ r.subTitle }}</small>
|
<small>{{ c.subTitle }}</small>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<app-org-badge
|
<app-org-badge
|
||||||
*ngIf="!organization"
|
*ngIf="!organization"
|
||||||
[disabled]="disabled"
|
[disabled]="disabled"
|
||||||
[organizationId]="r.organizationId"
|
[organizationId]="c.organizationId"
|
||||||
[organizationName]="r.organizationId | orgNameFromId: (organizations$ | async)"
|
[organizationName]="c.organizationId | orgNameFromId: (organizations$ | async)"
|
||||||
appStopProp
|
appStopProp
|
||||||
>
|
>
|
||||||
</app-org-badge>
|
</app-org-badge>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
<span bitBadge [variant]="passwordStrengthMap.get(r.id)[1]">
|
<span bitBadge [variant]="passwordStrengthMap.get(c.id)[1]">
|
||||||
{{ passwordStrengthMap.get(r.id)[0] | i18n }}
|
{{ passwordStrengthMap.get(c.id)[0] | i18n }}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</ng-template>
|
</tbody>
|
||||||
</bit-table>
|
</table>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
<ng-template #cipherAddEdit></ng-template>
|
<ng-template #cipherAddEdit></ng-template>
|
||||||
|
|
Loading…
Reference in New Issue