mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
[EC-331] User status terminology updates (revoked/restore) (#3135)
This commit is contained in:
@@ -204,15 +204,18 @@ export abstract class BasePeopleComponent<
|
|||||||
this.edit(null);
|
this.edit(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
async remove(user: UserType) {
|
protected async removeUserConfirmationDialog(user: UserType) {
|
||||||
const confirmed = await this.platformUtilsService.showDialog(
|
return this.platformUtilsService.showDialog(
|
||||||
this.deleteWarningMessage(user),
|
this.i18nService.t("removeUserConfirmation"),
|
||||||
this.userNamePipe.transform(user),
|
this.userNamePipe.transform(user),
|
||||||
this.i18nService.t("yes"),
|
this.i18nService.t("yes"),
|
||||||
this.i18nService.t("no"),
|
this.i18nService.t("no"),
|
||||||
"warning"
|
"warning"
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
async remove(user: UserType) {
|
||||||
|
const confirmed = await this.removeUserConfirmationDialog(user);
|
||||||
if (!confirmed) {
|
if (!confirmed) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -235,8 +238,8 @@ export abstract class BasePeopleComponent<
|
|||||||
async deactivate(user: UserType) {
|
async deactivate(user: UserType) {
|
||||||
const confirmed = await this.platformUtilsService.showDialog(
|
const confirmed = await this.platformUtilsService.showDialog(
|
||||||
this.deactivateWarningMessage(),
|
this.deactivateWarningMessage(),
|
||||||
this.i18nService.t("deactivateUserId", this.userNamePipe.transform(user)),
|
this.i18nService.t("revokeUserId", this.userNamePipe.transform(user)),
|
||||||
this.i18nService.t("deactivate"),
|
this.i18nService.t("revokeAccess"),
|
||||||
this.i18nService.t("cancel"),
|
this.i18nService.t("cancel"),
|
||||||
"warning"
|
"warning"
|
||||||
);
|
);
|
||||||
@@ -251,7 +254,7 @@ export abstract class BasePeopleComponent<
|
|||||||
this.platformUtilsService.showToast(
|
this.platformUtilsService.showToast(
|
||||||
"success",
|
"success",
|
||||||
null,
|
null,
|
||||||
this.i18nService.t("deactivatedUserId", this.userNamePipe.transform(user))
|
this.i18nService.t("revokedUserId", this.userNamePipe.transform(user))
|
||||||
);
|
);
|
||||||
await this.load();
|
await this.load();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@@ -261,25 +264,13 @@ export abstract class BasePeopleComponent<
|
|||||||
}
|
}
|
||||||
|
|
||||||
async activate(user: UserType) {
|
async activate(user: UserType) {
|
||||||
const confirmed = await this.platformUtilsService.showDialog(
|
|
||||||
this.activateWarningMessage(),
|
|
||||||
this.i18nService.t("activateUserId", this.userNamePipe.transform(user)),
|
|
||||||
this.i18nService.t("activate"),
|
|
||||||
this.i18nService.t("cancel"),
|
|
||||||
"warning"
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!confirmed) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.actionPromise = this.activateUser(user.id);
|
this.actionPromise = this.activateUser(user.id);
|
||||||
try {
|
try {
|
||||||
await this.actionPromise;
|
await this.actionPromise;
|
||||||
this.platformUtilsService.showToast(
|
this.platformUtilsService.showToast(
|
||||||
"success",
|
"success",
|
||||||
null,
|
null,
|
||||||
this.i18nService.t("activatedUserId", this.userNamePipe.transform(user))
|
this.i18nService.t("restoredUserId", this.userNamePipe.transform(user))
|
||||||
);
|
);
|
||||||
await this.load();
|
await this.load();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@@ -395,7 +386,7 @@ export abstract class BasePeopleComponent<
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected deactivateWarningMessage(): string {
|
protected deactivateWarningMessage(): string {
|
||||||
return this.i18nService.t("deactivateUserConfirmation");
|
return this.i18nService.t("revokeUserConfirmation");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected activateWarningMessage(): string {
|
protected activateWarningMessage(): string {
|
||||||
|
|||||||
@@ -22,8 +22,8 @@
|
|||||||
{{ error }}
|
{{ error }}
|
||||||
</app-callout>
|
</app-callout>
|
||||||
<ng-container *ngIf="!done">
|
<ng-container *ngIf="!done">
|
||||||
<app-callout type="warning" *ngIf="users.length > 0 && !error">
|
<app-callout type="warning" *ngIf="users.length > 0 && !error && isDeactivating">
|
||||||
{{ usersWarning }}
|
{{ "revokeUsersWarning" | i18n }}
|
||||||
</app-callout>
|
</app-callout>
|
||||||
<table class="table table-hover table-list">
|
<table class="table table-hover table-list">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { Component } from "@angular/core";
|
import { Component } from "@angular/core";
|
||||||
|
|
||||||
import { ModalRef } from "@bitwarden/angular/components/modal/modal.ref";
|
|
||||||
import { ModalConfig } from "@bitwarden/angular/services/modal.service";
|
import { ModalConfig } from "@bitwarden/angular/services/modal.service";
|
||||||
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
||||||
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
||||||
@@ -26,7 +25,6 @@ export class BulkDeactivateComponent {
|
|||||||
constructor(
|
constructor(
|
||||||
protected apiService: ApiService,
|
protected apiService: ApiService,
|
||||||
protected i18nService: I18nService,
|
protected i18nService: I18nService,
|
||||||
private modalRef: ModalRef,
|
|
||||||
config: ModalConfig
|
config: ModalConfig
|
||||||
) {
|
) {
|
||||||
this.isDeactivating = config.data.isDeactivating;
|
this.isDeactivating = config.data.isDeactivating;
|
||||||
@@ -35,21 +33,16 @@ export class BulkDeactivateComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get bulkTitle() {
|
get bulkTitle() {
|
||||||
const titleKey = this.isDeactivating ? "deactivateUsers" : "activateUsers";
|
const titleKey = this.isDeactivating ? "revokeUsers" : "restoreUsers";
|
||||||
return this.i18nService.t(titleKey);
|
return this.i18nService.t(titleKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
get usersWarning() {
|
|
||||||
const warningKey = this.isDeactivating ? "deactivateUsersWarning" : "activateUsersWarning";
|
|
||||||
return this.i18nService.t(warningKey);
|
|
||||||
}
|
|
||||||
|
|
||||||
async submit() {
|
async submit() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
try {
|
try {
|
||||||
const response = await this.performBulkUserAction();
|
const response = await this.performBulkUserAction();
|
||||||
|
|
||||||
const bulkMessage = this.isDeactivating ? "bulkDeactivatedMessage" : "bulkActivatedMessage";
|
const bulkMessage = this.isDeactivating ? "bulkRevokedMessage" : "bulkRestoredMessage";
|
||||||
response.data.forEach((entry) => {
|
response.data.forEach((entry) => {
|
||||||
const error = entry.error !== "" ? entry.error : this.i18nService.t(bulkMessage);
|
const error = entry.error !== "" ? entry.error : this.i18nService.t(bulkMessage);
|
||||||
this.statuses.set(entry.id, error);
|
this.statuses.set(entry.id, error);
|
||||||
@@ -60,7 +53,6 @@ export class BulkDeactivateComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.modalRef.close();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected async performBulkUserAction() {
|
protected async performBulkUserAction() {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
</app-callout>
|
</app-callout>
|
||||||
<ng-container *ngIf="!done">
|
<ng-container *ngIf="!done">
|
||||||
<app-callout type="warning" *ngIf="users.length > 0 && !error">
|
<app-callout type="warning" *ngIf="users.length > 0 && !error">
|
||||||
{{ "removeUsersWarning" | i18n }}
|
{{ removeUsersWarning }}
|
||||||
</app-callout>
|
</app-callout>
|
||||||
<table class="table table-hover table-list">
|
<table class="table table-hover table-list">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@@ -43,4 +43,8 @@ export class BulkRemoveComponent {
|
|||||||
const request = new OrganizationUserBulkRequest(this.users.map((user) => user.id));
|
const request = new OrganizationUserBulkRequest(this.users.map((user) => user.id));
|
||||||
return await this.apiService.deleteManyOrganizationUsers(this.organizationId, request);
|
return await this.apiService.deleteManyOrganizationUsers(this.organizationId, request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected get removeUsersWarning() {
|
||||||
|
return this.i18nService.t("removeOrgUsersConfirmation");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
[ngClass]="{ active: status == userStatusType.Deactivated }"
|
[ngClass]="{ active: status == userStatusType.Deactivated }"
|
||||||
(click)="filter(userStatusType.Deactivated)"
|
(click)="filter(userStatusType.Deactivated)"
|
||||||
>
|
>
|
||||||
{{ "deactivated" | i18n }}
|
{{ "revoked" | i18n }}
|
||||||
<span bitBadge badgeType="info" *ngIf="deactivatedCount">{{ deactivatedCount }}</span>
|
<span bitBadge badgeType="info" *ngIf="deactivatedCount">{{ deactivatedCount }}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@@ -77,11 +77,11 @@
|
|||||||
</button>
|
</button>
|
||||||
<button class="dropdown-item" appStopClick (click)="bulkActivate()">
|
<button class="dropdown-item" appStopClick (click)="bulkActivate()">
|
||||||
<i class="bwi bwi-fw bwi-plus-circle" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-plus-circle" aria-hidden="true"></i>
|
||||||
{{ "activate" | i18n }}
|
{{ "restoreAccess" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button class="dropdown-item" appStopClick (click)="bulkDeactivate()">
|
<button class="dropdown-item" appStopClick (click)="bulkDeactivate()">
|
||||||
<i class="bwi bwi-fw bwi-minus-circle" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-minus-circle" aria-hidden="true"></i>
|
||||||
{{ "deactivate" | i18n }}
|
{{ "revokeAccess" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button class="dropdown-item text-danger" appStopClick (click)="bulkRemove()">
|
<button class="dropdown-item text-danger" appStopClick (click)="bulkRemove()">
|
||||||
<i class="bwi bwi-fw bwi-close" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-close" aria-hidden="true"></i>
|
||||||
@@ -159,7 +159,7 @@
|
|||||||
"accepted" | i18n
|
"accepted" | i18n
|
||||||
}}</span>
|
}}</span>
|
||||||
<span bitBadge badgeType="secondary" *ngIf="u.status === userStatusType.Deactivated">{{
|
<span bitBadge badgeType="secondary" *ngIf="u.status === userStatusType.Deactivated">{{
|
||||||
"deactivated" | i18n
|
"revoked" | i18n
|
||||||
}}</span>
|
}}</span>
|
||||||
<small class="text-muted d-block" *ngIf="u.name">{{ u.name }}</small>
|
<small class="text-muted d-block" *ngIf="u.name">{{ u.name }}</small>
|
||||||
</td>
|
</td>
|
||||||
@@ -259,7 +259,7 @@
|
|||||||
*ngIf="u.status === userStatusType.Deactivated"
|
*ngIf="u.status === userStatusType.Deactivated"
|
||||||
>
|
>
|
||||||
<i class="bwi bwi-fw bwi-plus-circle" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-plus-circle" aria-hidden="true"></i>
|
||||||
{{ "activate" | i18n }}
|
{{ "restoreAccess" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
class="dropdown-item"
|
class="dropdown-item"
|
||||||
@@ -269,7 +269,7 @@
|
|||||||
*ngIf="u.status !== userStatusType.Deactivated"
|
*ngIf="u.status !== userStatusType.Deactivated"
|
||||||
>
|
>
|
||||||
<i class="bwi bwi-fw bwi-minus-circle" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-minus-circle" aria-hidden="true"></i>
|
||||||
{{ "deactivate" | i18n }}
|
{{ "revokeAccess" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
<a class="dropdown-item text-danger" href="#" appStopClick (click)="remove(u)">
|
<a class="dropdown-item text-danger" href="#" appStopClick (click)="remove(u)">
|
||||||
<i class="bwi bwi-fw bwi-close" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-close" aria-hidden="true"></i>
|
||||||
|
|||||||
@@ -397,12 +397,18 @@ export class PeopleComponent
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected deleteWarningMessage(user: OrganizationUserUserDetailsResponse): string {
|
protected async removeUserConfirmationDialog(user: OrganizationUserUserDetailsResponse) {
|
||||||
if (user.usesKeyConnector) {
|
const warningMessage = user.usesKeyConnector
|
||||||
return this.i18nService.t("removeUserConfirmationKeyConnector");
|
? this.i18nService.t("removeUserConfirmationKeyConnector")
|
||||||
}
|
: this.i18nService.t("removeOrgUserConfirmation");
|
||||||
|
|
||||||
return super.deleteWarningMessage(user);
|
return this.platformUtilsService.showDialog(
|
||||||
|
warningMessage,
|
||||||
|
this.i18nService.t("removeUserIdAccess", this.userNamePipe.transform(user)),
|
||||||
|
this.i18nService.t("yes"),
|
||||||
|
this.i18nService.t("no"),
|
||||||
|
"warning"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async showBulkStatus(
|
private async showBulkStatus(
|
||||||
|
|||||||
@@ -11,9 +11,7 @@
|
|||||||
<h2 class="modal-title" id="userAddEditTitle">
|
<h2 class="modal-title" id="userAddEditTitle">
|
||||||
{{ title }}
|
{{ title }}
|
||||||
<small class="text-muted" *ngIf="name">{{ name }}</small>
|
<small class="text-muted" *ngIf="name">{{ name }}</small>
|
||||||
<span bitBadge badgeType="secondary" *ngIf="isDeactivated">{{
|
<span bitBadge badgeType="secondary" *ngIf="isDeactivated">{{ "revoked" | i18n }}</span>
|
||||||
"deactivated" | i18n
|
|
||||||
}}</span>
|
|
||||||
</h2>
|
</h2>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
@@ -385,41 +383,31 @@
|
|||||||
type="button"
|
type="button"
|
||||||
(click)="activate()"
|
(click)="activate()"
|
||||||
class="btn btn-outline-secondary"
|
class="btn btn-outline-secondary"
|
||||||
appA11yTitle="{{ 'activate' | i18n }}"
|
|
||||||
*ngIf="editMode && isDeactivated"
|
*ngIf="editMode && isDeactivated"
|
||||||
[disabled]="form.loading"
|
[disabled]="form.loading"
|
||||||
>
|
>
|
||||||
<i
|
|
||||||
class="bwi bwi-plus-circle bwi-lg bwi-fw"
|
|
||||||
[hidden]="form.loading"
|
|
||||||
aria-hidden="true"
|
|
||||||
></i>
|
|
||||||
<i
|
<i
|
||||||
class="bwi bwi-spinner bwi-spin bwi-lg bwi-fw"
|
class="bwi bwi-spinner bwi-spin bwi-lg bwi-fw"
|
||||||
[hidden]="!form.loading"
|
[hidden]="!form.loading"
|
||||||
title="{{ 'loading' | i18n }}"
|
title="{{ 'loading' | i18n }}"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
></i>
|
></i>
|
||||||
|
<span>{{ "restoreAccess" | i18n }}</span>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
(click)="deactivate()"
|
(click)="deactivate()"
|
||||||
class="btn btn-outline-secondary"
|
class="btn btn-outline-secondary"
|
||||||
appA11yTitle="{{ 'deactivate' | i18n }}"
|
|
||||||
*ngIf="editMode && !isDeactivated"
|
*ngIf="editMode && !isDeactivated"
|
||||||
[disabled]="form.loading"
|
[disabled]="form.loading"
|
||||||
>
|
>
|
||||||
<i
|
|
||||||
class="bwi bwi-minus-circle bwi-lg bwi-fw"
|
|
||||||
[hidden]="form.loading"
|
|
||||||
aria-hidden="true"
|
|
||||||
></i>
|
|
||||||
<i
|
<i
|
||||||
class="bwi bwi-spinner bwi-spin bwi-lg bwi-fw"
|
class="bwi bwi-spinner bwi-spin bwi-lg bwi-fw"
|
||||||
[hidden]="!form.loading"
|
[hidden]="!form.loading"
|
||||||
title="{{ 'loading' | i18n }}"
|
title="{{ 'loading' | i18n }}"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
></i>
|
></i>
|
||||||
|
<span>{{ "revokeAccess" | i18n }}</span>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
#deleteBtn
|
#deleteBtn
|
||||||
|
|||||||
@@ -216,10 +216,10 @@ export class UserAddEditComponent implements OnInit {
|
|||||||
|
|
||||||
const message = this.usesKeyConnector
|
const message = this.usesKeyConnector
|
||||||
? "removeUserConfirmationKeyConnector"
|
? "removeUserConfirmationKeyConnector"
|
||||||
: "removeUserConfirmation";
|
: "removeOrgUserConfirmation";
|
||||||
const confirmed = await this.platformUtilsService.showDialog(
|
const confirmed = await this.platformUtilsService.showDialog(
|
||||||
this.i18nService.t(message),
|
this.i18nService.t(message),
|
||||||
this.name,
|
this.i18nService.t("removeUserIdAccess", this.name),
|
||||||
this.i18nService.t("yes"),
|
this.i18nService.t("yes"),
|
||||||
this.i18nService.t("no"),
|
this.i18nService.t("no"),
|
||||||
"warning"
|
"warning"
|
||||||
@@ -251,9 +251,9 @@ export class UserAddEditComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const confirmed = await this.platformUtilsService.showDialog(
|
const confirmed = await this.platformUtilsService.showDialog(
|
||||||
this.i18nService.t("deactivateUserConfirmation"),
|
this.i18nService.t("revokeUserConfirmation"),
|
||||||
this.i18nService.t("deactivateUserId", this.name),
|
this.i18nService.t("revokeUserId", this.name),
|
||||||
this.i18nService.t("deactivate"),
|
this.i18nService.t("revokeAccess"),
|
||||||
this.i18nService.t("cancel"),
|
this.i18nService.t("cancel"),
|
||||||
"warning"
|
"warning"
|
||||||
);
|
);
|
||||||
@@ -270,7 +270,7 @@ export class UserAddEditComponent implements OnInit {
|
|||||||
this.platformUtilsService.showToast(
|
this.platformUtilsService.showToast(
|
||||||
"success",
|
"success",
|
||||||
null,
|
null,
|
||||||
this.i18nService.t("deactivatedUserId", this.name)
|
this.i18nService.t("revokedUserId", this.name)
|
||||||
);
|
);
|
||||||
this.isDeactivated = true;
|
this.isDeactivated = true;
|
||||||
this.onDeactivatedUser.emit();
|
this.onDeactivatedUser.emit();
|
||||||
@@ -284,17 +284,6 @@ export class UserAddEditComponent implements OnInit {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const confirmed = await this.platformUtilsService.showDialog(
|
|
||||||
this.i18nService.t("activateUserConfirmation"),
|
|
||||||
this.i18nService.t("activateUserId", this.name),
|
|
||||||
this.i18nService.t("activate"),
|
|
||||||
this.i18nService.t("cancel"),
|
|
||||||
"warning"
|
|
||||||
);
|
|
||||||
if (!confirmed) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.formPromise = this.apiService.activateOrganizationUser(
|
this.formPromise = this.apiService.activateOrganizationUser(
|
||||||
this.organizationId,
|
this.organizationId,
|
||||||
@@ -304,7 +293,7 @@ export class UserAddEditComponent implements OnInit {
|
|||||||
this.platformUtilsService.showToast(
|
this.platformUtilsService.showToast(
|
||||||
"success",
|
"success",
|
||||||
null,
|
null,
|
||||||
this.i18nService.t("activatedUserId", this.name)
|
this.i18nService.t("restoredUserId", this.name)
|
||||||
);
|
);
|
||||||
this.isDeactivated = false;
|
this.isDeactivated = false;
|
||||||
this.onActivatedUser.emit();
|
this.onActivatedUser.emit();
|
||||||
|
|||||||
@@ -1250,8 +1250,8 @@
|
|||||||
"enabled": {
|
"enabled": {
|
||||||
"message": "Enabled"
|
"message": "Enabled"
|
||||||
},
|
},
|
||||||
"activate": {
|
"restoreAccess": {
|
||||||
"message": "Activate"
|
"message": "Restore Access"
|
||||||
},
|
},
|
||||||
"premium": {
|
"premium": {
|
||||||
"message": "Premium",
|
"message": "Premium",
|
||||||
@@ -1278,8 +1278,8 @@
|
|||||||
"disable": {
|
"disable": {
|
||||||
"message": "Disable"
|
"message": "Disable"
|
||||||
},
|
},
|
||||||
"deactivate": {
|
"revokeAccess": {
|
||||||
"message": "Deactivate"
|
"message": "Revoke Access"
|
||||||
},
|
},
|
||||||
"twoStepLoginProviderEnabled": {
|
"twoStepLoginProviderEnabled": {
|
||||||
"message": "This two-step login provider is enabled on your account."
|
"message": "This two-step login provider is enabled on your account."
|
||||||
@@ -2259,11 +2259,11 @@
|
|||||||
"removeUserConfirmation": {
|
"removeUserConfirmation": {
|
||||||
"message": "Are you sure you want to remove this user?"
|
"message": "Are you sure you want to remove this user?"
|
||||||
},
|
},
|
||||||
"deactivateUserConfirmation": {
|
"removeOrgUserConfirmation": {
|
||||||
"message": "The member will no longer have access to the organization, but will still have access to their individual vault."
|
"message": "When a member is removed, they no longer have access to organization data and this action is irreversible. To add the member back to the organization, they must be invited and onboarded again."
|
||||||
},
|
},
|
||||||
"activateUserConfirmation": {
|
"revokeUserConfirmation": {
|
||||||
"message": "Are you sure you want to activate this user, granting them access to the organization?"
|
"message": "When a member is revoked, they no longer have access to organization data. To quickly restore member access, go to the Revoked tab."
|
||||||
},
|
},
|
||||||
"removeUserConfirmationKeyConnector": {
|
"removeUserConfirmationKeyConnector": {
|
||||||
"message": "Warning! This user requires Key Connector to manage their encryption. Removing this user from your organization will permanently disable their account. This action cannot be undone. Do you want to proceed?"
|
"message": "Warning! This user requires Key Connector to manage their encryption. Removing this user from your organization will permanently disable their account. This action cannot be undone. Do you want to proceed?"
|
||||||
@@ -2610,8 +2610,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"deactivatedUserId": {
|
"removeUserIdAccess": {
|
||||||
"message": "Deactivated user $ID$.",
|
"message": "Remove $ID$ access",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"id": {
|
"id": {
|
||||||
"content": "$1",
|
"content": "$1",
|
||||||
@@ -2619,8 +2619,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"activatedUserId": {
|
"revokedUserId": {
|
||||||
"message": "Activated user $ID$.",
|
"message": "Revoked organization access for $ID$.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"id": {
|
"id": {
|
||||||
"content": "$1",
|
"content": "$1",
|
||||||
@@ -2628,8 +2628,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"deactivateUserId": {
|
"restoredUserId": {
|
||||||
"message": "Deactivate user $ID$?",
|
"message": "Restored organization access for $ID$.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"id": {
|
"id": {
|
||||||
"content": "$1",
|
"content": "$1",
|
||||||
@@ -2637,8 +2637,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"activateUserId": {
|
"revokeUserId": {
|
||||||
"message": "Activate user $ID$?",
|
"message": "Revoke $ID$ access",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"id": {
|
"id": {
|
||||||
"content": "$1",
|
"content": "$1",
|
||||||
@@ -3702,8 +3702,8 @@
|
|||||||
"disabled": {
|
"disabled": {
|
||||||
"message": "Disabled"
|
"message": "Disabled"
|
||||||
},
|
},
|
||||||
"deactivated": {
|
"revoked": {
|
||||||
"message": "Deactivated"
|
"message": "Revoked"
|
||||||
},
|
},
|
||||||
"sendLink": {
|
"sendLink": {
|
||||||
"message": "Send link",
|
"message": "Send link",
|
||||||
@@ -4306,11 +4306,11 @@
|
|||||||
"removeUsersWarning": {
|
"removeUsersWarning": {
|
||||||
"message": "Are you sure you want to remove the following users? The process may take a few seconds to complete and cannot be interrupted or canceled."
|
"message": "Are you sure you want to remove the following users? The process may take a few seconds to complete and cannot be interrupted or canceled."
|
||||||
},
|
},
|
||||||
"deactivateUsersWarning": {
|
"removeOrgUsersConfirmation": {
|
||||||
"message": "Are you sure you want to deactivate the following members? They will no longer have access to the organization, but will still have access to their individual vaults. The process may take a few seconds to complete and cannot be interrupted or canceled."
|
"message": "When member(s) are removed, they no longer have access to organization data and this action is irreversible. To add the member back to the organization, they must be invited and onboarded again. The process may take a few seconds to complete and cannot be interrupted or canceled."
|
||||||
},
|
},
|
||||||
"activateUsersWarning": {
|
"revokeUsersWarning": {
|
||||||
"message": "Are you sure you want to activate the following members, granting them access to the organization? The process may take a few seconds to complete and cannot be interrupted or canceled."
|
"message": "When member(s) are revoked, they no longer have access to organization data. To quickly restore member access, go to the Revoked tab. The process may take a few seconds to complete and cannot be interrupted or canceled."
|
||||||
},
|
},
|
||||||
"theme": {
|
"theme": {
|
||||||
"message": "Theme"
|
"message": "Theme"
|
||||||
@@ -4342,11 +4342,11 @@
|
|||||||
"bulkRemovedMessage": {
|
"bulkRemovedMessage": {
|
||||||
"message": "Removed successfully"
|
"message": "Removed successfully"
|
||||||
},
|
},
|
||||||
"bulkDeactivatedMessage": {
|
"bulkRevokedMessage": {
|
||||||
"message": "Deactivated successfully"
|
"message": "Revoked organization access successfully"
|
||||||
},
|
},
|
||||||
"bulkActivatedMessage": {
|
"bulkRestoredMessage": {
|
||||||
"message": "Activated successfully"
|
"message": "Restored organization access successfully"
|
||||||
},
|
},
|
||||||
"bulkFilteredMessage": {
|
"bulkFilteredMessage": {
|
||||||
"message": "Excluded, not applicable for this action."
|
"message": "Excluded, not applicable for this action."
|
||||||
@@ -4357,11 +4357,11 @@
|
|||||||
"removeUsers": {
|
"removeUsers": {
|
||||||
"message": "Remove Users"
|
"message": "Remove Users"
|
||||||
},
|
},
|
||||||
"deactivateUsers": {
|
"revokeUsers": {
|
||||||
"message": "Deactivate Users"
|
"message": "Revoke Users"
|
||||||
},
|
},
|
||||||
"activateUsers": {
|
"restoreUsers": {
|
||||||
"message": "Activate Users"
|
"message": "Restore Users"
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"message": "Error"
|
"message": "Error"
|
||||||
@@ -4773,9 +4773,6 @@
|
|||||||
"sponsorshipCreated": {
|
"sponsorshipCreated": {
|
||||||
"message": "Sponsorship Created"
|
"message": "Sponsorship Created"
|
||||||
},
|
},
|
||||||
"revoke": {
|
|
||||||
"message": "Revoke"
|
|
||||||
},
|
|
||||||
"emailSent": {
|
"emailSent": {
|
||||||
"message": "Email Sent"
|
"message": "Email Sent"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -15,4 +15,8 @@ export class BulkRemoveComponent extends OrganizationBulkRemoveComponent {
|
|||||||
const request = new ProviderUserBulkRequest(this.users.map((user) => user.id));
|
const request = new ProviderUserBulkRequest(this.users.map((user) => user.id));
|
||||||
return await this.apiService.deleteManyProviderUsers(this.providerId, request);
|
return await this.apiService.deleteManyProviderUsers(this.providerId, request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected get removeUsersWarning() {
|
||||||
|
return this.i18nService.t("removeUsersWarning");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user