mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
* Prevent confirm dialog from showing when autoConfirm is enabled * Fix bulk confirm not showing if more than 3 confirmed users in org. * Refactor bulk confirm to show a single dialog with all fingerprints * Move bulk status dialog to bulk folder * Refactor bulk delete to use a custom modal * Update src/locales/en/messages.json Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com> Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>
82 lines
4.1 KiB
HTML
82 lines
4.1 KiB
HTML
<div class="modal fade" tabindex="-1" role="dialog" aria-modal="true" aria-labelledby="bulkTitle">
|
|
<div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h2 class="modal-title" id="bulkTitle">
|
|
{{'removeUsers' | i18n}}
|
|
</h2>
|
|
<button type="button" class="close" data-dismiss="modal" appA11yTitle="{{'close' | i18n}}">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="card-body text-center" *ngIf="loading">
|
|
<i class="fa fa-spinner fa-spin" title="{{'loading' | i18n}}" aria-hidden="true"></i>
|
|
{{'loading' | i18n}}
|
|
</div>
|
|
<app-callout type="danger" *ngIf="users.length <= 0">
|
|
{{'noSelectedUsersApplicable' | i18n}}
|
|
</app-callout>
|
|
<app-callout type="error" *ngIf="error">
|
|
{{error}}
|
|
</app-callout>
|
|
<ng-container *ngIf="!loading && !done">
|
|
<app-callout type="warning" *ngIf="users.length > 0 && !error">
|
|
{{'removeUsersWarning' | i18n}}
|
|
</app-callout>
|
|
<table class="table table-hover table-list">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2">{{'user' | i18n}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tr *ngFor="let user of users">
|
|
<td width="30">
|
|
<app-avatar [data]="user.name || user.email" [email]="user.email" size="25" [circle]="true"
|
|
[fontSize]="14"></app-avatar>
|
|
</td>
|
|
<td>
|
|
{{user.email}}
|
|
<small class="text-muted d-block" *ngIf="user.name">{{user.name}}</small>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</ng-container>
|
|
<ng-container *ngIf="!loading && done">
|
|
<table class="table table-hover table-list">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2">{{'user' | i18n}}</th>
|
|
<th>{{'status' | i18n}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tr *ngFor="let user of users">
|
|
<td width="30">
|
|
<app-avatar [data]="user.name || user.email" [email]="user.email" size="25" [circle]="true"
|
|
[fontSize]="14"></app-avatar>
|
|
</td>
|
|
<td>
|
|
{{user.email}}
|
|
<small class="text-muted d-block" *ngIf="user.name">{{user.name}}</small>
|
|
</td>
|
|
<td *ngIf="statuses.has(user.id)">
|
|
{{statuses.get(user.id)}}
|
|
</td>
|
|
<td *ngIf="!statuses.has(user.id)">
|
|
{{'bulkFilteredMessage' | i18n}}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</ng-container>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="submit" class="btn btn-primary btn-submit" *ngIf="!done && users.length > 0" [disabled]="loading" (click)="submit()">
|
|
<i class="fa fa-spinner fa-spin" title="{{'loading' | i18n}}" aria-hidden="true"></i>
|
|
<span>{{'removeUsers' | i18n}}</span>
|
|
</button>
|
|
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">{{'close' | i18n}}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|