mirror of
https://github.com/bitwarden/web
synced 2025-12-06 00:03:28 +00:00
Compare commits
25 Commits
bug/PS-250
...
220f8a8e46
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
220f8a8e46 | ||
|
|
f7a24ad8e3 | ||
|
|
49f02bf20b | ||
|
|
cd174283ed | ||
|
|
e07deff505 | ||
|
|
2af429249c | ||
|
|
3c0d78c61c | ||
|
|
f1edae5a3e | ||
|
|
6f3f1a3d47 | ||
|
|
e1ffca07ba | ||
|
|
fb35805202 | ||
|
|
b6b7298980 | ||
|
|
52406bc969 | ||
|
|
d7dd2435fc | ||
|
|
ae3788d42b | ||
|
|
0e62e2ec2b | ||
|
|
95d177da38 | ||
|
|
ad0512e344 | ||
|
|
8fe9504cd1 | ||
|
|
b8aa25b981 | ||
|
|
5d09ddbc8d | ||
|
|
bde9a28f2b | ||
|
|
dfb03a53c0 | ||
|
|
b98b391283 | ||
|
|
91e8d6d506 |
23
.github/workflows/release.yml
vendored
23
.github/workflows/release.yml
vendored
@@ -19,8 +19,8 @@ jobs:
|
|||||||
name: Setup
|
name: Setup
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
outputs:
|
outputs:
|
||||||
release_version: ${{ steps.version.outputs.package }}
|
release_version: ${{ steps.version.outputs.version }}
|
||||||
tag_version: ${{ steps.version.outputs.tag }}
|
tag_version: ${{ steps.version.outputs.version }}
|
||||||
branch_name: ${{ steps.branch.outputs.branch_name }}
|
branch_name: ${{ steps.branch.outputs.branch_name }}
|
||||||
steps:
|
steps:
|
||||||
- name: Branch check
|
- name: Branch check
|
||||||
@@ -38,20 +38,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Check Release Version
|
- name: Check Release Version
|
||||||
id: version
|
id: version
|
||||||
run: |
|
uses: bitwarden/gh-actions/release-version-check@ea9fab01d76940267b4147cc1c4542431246b9f6
|
||||||
version=$( jq -r ".version" package.json)
|
with:
|
||||||
previous_release_tag_version=$(
|
release-type: ${{ github.event.inputs.release_type }}
|
||||||
curl -sL https://api.github.com/repos/$GITHUB_REPOSITORY/releases/latest | jq -r ".tag_name"
|
project-type: ts
|
||||||
)
|
file: package.json
|
||||||
|
|
||||||
if [ "v$version" == "$previous_release_tag_version" ] && \
|
|
||||||
[ "${{ github.event.inputs.release_type }}" == "Initial Release" ]; then
|
|
||||||
echo "[!] Already released v$version. Please bump version to continue"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "::set-output name=package::$version"
|
|
||||||
echo "::set-output name=tag::v$version"
|
|
||||||
|
|
||||||
- name: Get branch name
|
- name: Get branch name
|
||||||
id: branch
|
id: branch
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
> **Repository Reorganization in Progress**
|
> **Archived**
|
||||||
>
|
>
|
||||||
> We are currently migrating some projects over to a mono repository. For existing PR's we will be providing documentation on how to move/migrate them. To minimize the overhead we are actively reviewing open PRs. If possible please ensure any pending comments are resolved as soon as possible.
|
> This repository is archived, please go to https://github.com/bitwarden/clients for future development.
|
||||||
>
|
|
||||||
> New pull requests created during this transition period may not get addressed —if needed, please create a new PR after the reorganization is complete.
|
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://raw.githubusercontent.com/bitwarden/brand/master/screenshots/web-vault-macbook.png" alt="" width="600" height="358" />
|
<img src="https://raw.githubusercontent.com/bitwarden/brand/master/screenshots/web-vault-macbook.png" alt="" width="600" height="358" />
|
||||||
|
|||||||
@@ -22,14 +22,16 @@ const routes: Routes = [
|
|||||||
component: ManageComponent,
|
component: ManageComponent,
|
||||||
canActivate: [PermissionsGuard],
|
canActivate: [PermissionsGuard],
|
||||||
data: {
|
data: {
|
||||||
permissions: NavigationPermissionsService.getPermissions("manage").concat(
|
permissions: NavigationPermissionsService.getPermissions("manage"),
|
||||||
Permissions.ManageSso
|
|
||||||
),
|
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "sso",
|
path: "sso",
|
||||||
component: SsoComponent,
|
component: SsoComponent,
|
||||||
|
canActivate: [PermissionsGuard],
|
||||||
|
data: {
|
||||||
|
permissions: [Permissions.ManageSso],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -15,3 +15,4 @@ files:
|
|||||||
en-GB: en_GB
|
en-GB: en_GB
|
||||||
en-IN: en_IN
|
en-IN: en_IN
|
||||||
sr-CY: sr_CY
|
sr-CY: sr_CY
|
||||||
|
sr-CS: sr_CS
|
||||||
|
|||||||
2
jslib
2
jslib
Submodule jslib updated: a6fe5c7900...f4066b4f58
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@bitwarden/web-vault",
|
"name": "@bitwarden/web-vault",
|
||||||
"version": "2.28.1",
|
"version": "2022.05.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@bitwarden/web-vault",
|
"name": "@bitwarden/web-vault",
|
||||||
"version": "2.28.1",
|
"version": "2022.05.0",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@bitwarden/web-vault",
|
"name": "@bitwarden/web-vault",
|
||||||
"version": "2.28.1",
|
"version": "2022.05.0",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"repository": "https://github.com/bitwarden/web",
|
"repository": "https://github.com/bitwarden/web",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
<bit-menu #orgPickerMenu>
|
<bit-menu #orgPickerMenu>
|
||||||
<ul aria-labelledby="pickerButton" class="tw-p-0 tw-m-0">
|
<ul aria-labelledby="pickerButton" class="tw-p-0 tw-m-0">
|
||||||
<li *ngFor="let org of organizations" class="tw-list-none tw-flex tw-flex-col" role="none">
|
<li *ngFor="let org of organizations" class="tw-list-none tw-flex tw-flex-col" role="none">
|
||||||
<a bit-menu-item [routerLink]="['/organizations', org.id]">
|
<a bitMenuItem [routerLink]="['/organizations', org.id]">
|
||||||
<i
|
<i
|
||||||
class="bwi bwi-check mr-2"
|
class="bwi bwi-check mr-2"
|
||||||
[ngClass]="org.id === activeOrganization.id ? 'visible' : 'invisible'"
|
[ngClass]="org.id === activeOrganization.id ? 'visible' : 'invisible'"
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
</li>
|
</li>
|
||||||
<bit-menu-divider></bit-menu-divider>
|
<bit-menu-divider></bit-menu-divider>
|
||||||
<li class="tw-list-none" role="none">
|
<li class="tw-list-none" role="none">
|
||||||
<a bit-menu-item routerLink="/create-organization">
|
<a bitMenuItem routerLink="/create-organization">
|
||||||
<i class="bwi bwi-plus mr-2"></i>
|
<i class="bwi bwi-plus mr-2"></i>
|
||||||
{{ "newOrganization" | i18n }}</a
|
{{ "newOrganization" | i18n }}</a
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { MessagingService } from "jslib-common/abstractions/messaging.service";
|
|||||||
@Component({
|
@Component({
|
||||||
selector: "app-premium-badge",
|
selector: "app-premium-badge",
|
||||||
template: `
|
template: `
|
||||||
<button *appNotPremium bit-badge badgeType="success" (click)="premiumRequired()">
|
<button *appNotPremium bitBadge badgeType="success" (click)="premiumRequired()">
|
||||||
{{ "premium" | i18n }}
|
{{ "premium" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
`,
|
`,
|
||||||
|
|||||||
@@ -65,24 +65,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<bit-menu-divider></bit-menu-divider>
|
<bit-menu-divider></bit-menu-divider>
|
||||||
<a bit-menu-item routerLink="/settings/account">
|
<a bitMenuItem routerLink="/settings/account">
|
||||||
<i class="bwi bwi-fw bwi-user" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-user" aria-hidden="true"></i>
|
||||||
{{ "accountSettings" | i18n }}
|
{{ "accountSettings" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
<a bit-menu-item href="https://bitwarden.com/help/" target="_blank" rel="noopener">
|
<a bitMenuItem href="https://bitwarden.com/help/" target="_blank" rel="noopener">
|
||||||
<i class="bwi bwi-fw bwi-question-circle" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-question-circle" aria-hidden="true"></i>
|
||||||
{{ "getHelp" | i18n }}
|
{{ "getHelp" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
<a bit-menu-item href="https://bitwarden.com/download/" target="_blank" rel="noopener">
|
<a bitMenuItem href="https://bitwarden.com/download/" target="_blank" rel="noopener">
|
||||||
<i class="bwi bwi-fw bwi-download" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-download" aria-hidden="true"></i>
|
||||||
{{ "getApps" | i18n }}
|
{{ "getApps" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
<bit-menu-divider></bit-menu-divider>
|
<bit-menu-divider></bit-menu-divider>
|
||||||
<button bit-menu-item type="button" (click)="lock()">
|
<button bitMenuItem type="button" (click)="lock()">
|
||||||
<i class="bwi bwi-fw bwi-lock" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-lock" aria-hidden="true"></i>
|
||||||
{{ "lockNow" | i18n }}
|
{{ "lockNow" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bit-menu-item type="button" (click)="logOut()">
|
<button bitMenuItem type="button" (click)="logOut()">
|
||||||
<i class="bwi bwi-fw bwi-sign-out" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-sign-out" aria-hidden="true"></i>
|
||||||
{{ "logOut" | i18n }}
|
{{ "logOut" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -0,0 +1,59 @@
|
|||||||
|
<div
|
||||||
|
class="modal fade"
|
||||||
|
role="dialog"
|
||||||
|
aria-modal="true"
|
||||||
|
aria-labelledby="enrollMasterPasswordResetTitle"
|
||||||
|
>
|
||||||
|
<div class="modal-dialog modal-dialog-scrollable" role="document">
|
||||||
|
<form
|
||||||
|
class="modal-content"
|
||||||
|
#form
|
||||||
|
(ngSubmit)="submit()"
|
||||||
|
[appApiAction]="formPromise"
|
||||||
|
ngNativeValidate
|
||||||
|
>
|
||||||
|
<div class="modal-header">
|
||||||
|
<h2 class="modal-title" id="enrollMasterPasswordResetTitle">
|
||||||
|
{{ (isEnrolled ? "withdrawPasswordReset" : "enrollPasswordReset") | i18n }}
|
||||||
|
</h2>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="close"
|
||||||
|
data-dismiss="modal"
|
||||||
|
appA11yTitle="{{ 'close' | i18n }}"
|
||||||
|
>
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<app-callout type="warning" *ngIf="!isEnrolled">
|
||||||
|
{{ "resetPasswordEnrollmentWarning" | i18n }}
|
||||||
|
</app-callout>
|
||||||
|
<app-user-verification [(ngModel)]="verification" name="secret"> </app-user-verification>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button bitButton buttonType="primary" type="submit" [disabled]="form.loading">
|
||||||
|
<i
|
||||||
|
class="bwi bwi-spinner bwi-spin"
|
||||||
|
title="{{ 'loading' | i18n }}"
|
||||||
|
*ngIf="form.loading"
|
||||||
|
></i>
|
||||||
|
<span>
|
||||||
|
{{ "submit" | i18n }}
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
bitButton
|
||||||
|
buttonType="secondary"
|
||||||
|
type="button"
|
||||||
|
data-dismiss="modal"
|
||||||
|
appA11yTitle="{{ 'close' | i18n }}"
|
||||||
|
>
|
||||||
|
<span>
|
||||||
|
{{ "cancel" | i18n }}
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,97 @@
|
|||||||
|
import { Component } from "@angular/core";
|
||||||
|
|
||||||
|
import { ModalRef } from "jslib-angular/components/modal/modal.ref";
|
||||||
|
import { ModalConfig } from "jslib-angular/services/modal.service";
|
||||||
|
import { ApiService } from "jslib-common/abstractions/api.service";
|
||||||
|
import { CryptoService } from "jslib-common/abstractions/crypto.service";
|
||||||
|
import { I18nService } from "jslib-common/abstractions/i18n.service";
|
||||||
|
import { LogService } from "jslib-common/abstractions/log.service";
|
||||||
|
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
|
||||||
|
import { SyncService } from "jslib-common/abstractions/sync.service";
|
||||||
|
import { UserVerificationService } from "jslib-common/abstractions/userVerification.service";
|
||||||
|
import { Utils } from "jslib-common/misc/utils";
|
||||||
|
import { Organization } from "jslib-common/models/domain/organization";
|
||||||
|
import { OrganizationUserResetPasswordEnrollmentRequest } from "jslib-common/models/request/organizationUserResetPasswordEnrollmentRequest";
|
||||||
|
import { Verification } from "jslib-common/types/verification";
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: "app-enroll-master-password-reset",
|
||||||
|
templateUrl: "enroll-master-password-reset.component.html",
|
||||||
|
})
|
||||||
|
export class EnrollMasterPasswordReset {
|
||||||
|
organization: Organization;
|
||||||
|
|
||||||
|
verification: Verification;
|
||||||
|
formPromise: Promise<any>;
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
private userVerificationService: UserVerificationService,
|
||||||
|
private apiService: ApiService,
|
||||||
|
private platformUtilsService: PlatformUtilsService,
|
||||||
|
private i18nService: I18nService,
|
||||||
|
private cryptoService: CryptoService,
|
||||||
|
private syncService: SyncService,
|
||||||
|
private logService: LogService,
|
||||||
|
private modalRef: ModalRef,
|
||||||
|
config: ModalConfig
|
||||||
|
) {
|
||||||
|
this.organization = config.data.organization;
|
||||||
|
}
|
||||||
|
|
||||||
|
async submit() {
|
||||||
|
let toastStringRef = "withdrawPasswordResetSuccess";
|
||||||
|
|
||||||
|
this.formPromise = this.userVerificationService
|
||||||
|
.buildRequest(this.verification, OrganizationUserResetPasswordEnrollmentRequest)
|
||||||
|
.then(async (request) => {
|
||||||
|
// Set variables
|
||||||
|
let keyString: string = null;
|
||||||
|
|
||||||
|
// Enrolling
|
||||||
|
if (!this.organization.resetPasswordEnrolled) {
|
||||||
|
// Retrieve Public Key
|
||||||
|
const orgKeys = await this.apiService.getOrganizationKeys(this.organization.id);
|
||||||
|
if (orgKeys == null) {
|
||||||
|
throw new Error(this.i18nService.t("resetPasswordOrgKeysError"));
|
||||||
|
}
|
||||||
|
|
||||||
|
const publicKey = Utils.fromB64ToArray(orgKeys.publicKey);
|
||||||
|
|
||||||
|
// RSA Encrypt user's encKey.key with organization public key
|
||||||
|
const encKey = await this.cryptoService.getEncKey();
|
||||||
|
const encryptedKey = await this.cryptoService.rsaEncrypt(encKey.key, publicKey.buffer);
|
||||||
|
keyString = encryptedKey.encryptedString;
|
||||||
|
toastStringRef = "enrollPasswordResetSuccess";
|
||||||
|
|
||||||
|
// Create request and execute enrollment
|
||||||
|
request.resetPasswordKey = keyString;
|
||||||
|
await this.apiService.putOrganizationUserResetPasswordEnrollment(
|
||||||
|
this.organization.id,
|
||||||
|
this.organization.userId,
|
||||||
|
request
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
// Withdrawal
|
||||||
|
request.resetPasswordKey = keyString;
|
||||||
|
await this.apiService.putOrganizationUserResetPasswordEnrollment(
|
||||||
|
this.organization.id,
|
||||||
|
this.organization.userId,
|
||||||
|
request
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
await this.syncService.fullSync(true);
|
||||||
|
});
|
||||||
|
try {
|
||||||
|
await this.formPromise;
|
||||||
|
this.platformUtilsService.showToast("success", null, this.i18nService.t(toastStringRef));
|
||||||
|
this.modalRef.close();
|
||||||
|
} catch (e) {
|
||||||
|
this.logService.error(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
get isEnrolled(): boolean {
|
||||||
|
return this.organization.resetPasswordEnrolled;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import { ScrollingModule } from "@angular/cdk/scrolling";
|
||||||
|
import { NgModule } from "@angular/core";
|
||||||
|
|
||||||
|
import { LooseComponentsModule } from "../../loose-components.module";
|
||||||
|
import { SharedModule } from "../../shared.module";
|
||||||
|
|
||||||
|
import { EnrollMasterPasswordReset } from "./enroll-master-password-reset.component";
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [SharedModule, ScrollingModule, LooseComponentsModule],
|
||||||
|
declarations: [EnrollMasterPasswordReset],
|
||||||
|
exports: [EnrollMasterPasswordReset],
|
||||||
|
})
|
||||||
|
export class OrganizationUserModule {}
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
<button
|
<button
|
||||||
class="toggle-button"
|
class="toggle-button"
|
||||||
*ngIf="c.children.length"
|
*ngIf="c.children.length"
|
||||||
(click)="collapse(c.node)"
|
(click)="toggleCollapse(c.node)"
|
||||||
title="{{ 'toggleCollapse' | i18n }}"
|
title="{{ 'toggleCollapse' | i18n }}"
|
||||||
[attr.aria-expanded]="!isCollapsed(c.node)"
|
[attr.aria-expanded]="!isCollapsed(c.node)"
|
||||||
[attr.aria-controls]="c.node.name + '_children'"
|
[attr.aria-controls]="c.node.name + '_children'"
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
import { Component, Input } from "@angular/core";
|
import { Component, Input } from "@angular/core";
|
||||||
|
|
||||||
|
import { ModalService } from "jslib-angular/services/modal.service";
|
||||||
import { ApiService } from "jslib-common/abstractions/api.service";
|
import { ApiService } from "jslib-common/abstractions/api.service";
|
||||||
import { CryptoService } from "jslib-common/abstractions/crypto.service";
|
|
||||||
import { I18nService } from "jslib-common/abstractions/i18n.service";
|
import { I18nService } from "jslib-common/abstractions/i18n.service";
|
||||||
import { LogService } from "jslib-common/abstractions/log.service";
|
import { LogService } from "jslib-common/abstractions/log.service";
|
||||||
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
|
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
|
||||||
import { PolicyService } from "jslib-common/abstractions/policy.service";
|
import { PolicyService } from "jslib-common/abstractions/policy.service";
|
||||||
import { SyncService } from "jslib-common/abstractions/sync.service";
|
import { SyncService } from "jslib-common/abstractions/sync.service";
|
||||||
import { PolicyType } from "jslib-common/enums/policyType";
|
import { PolicyType } from "jslib-common/enums/policyType";
|
||||||
import { Utils } from "jslib-common/misc/utils";
|
|
||||||
import { Organization } from "jslib-common/models/domain/organization";
|
import { Organization } from "jslib-common/models/domain/organization";
|
||||||
import { Policy } from "jslib-common/models/domain/policy";
|
import { Policy } from "jslib-common/models/domain/policy";
|
||||||
import { OrganizationUserResetPasswordEnrollmentRequest } from "jslib-common/models/request/organizationUserResetPasswordEnrollmentRequest";
|
|
||||||
|
import { EnrollMasterPasswordReset } from "../../organizations/users/enroll-master-password-reset.component";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-organization-options",
|
selector: "app-organization-options",
|
||||||
@@ -29,8 +29,8 @@ export class OrganizationOptionsComponent {
|
|||||||
private i18nService: I18nService,
|
private i18nService: I18nService,
|
||||||
private apiService: ApiService,
|
private apiService: ApiService,
|
||||||
private syncService: SyncService,
|
private syncService: SyncService,
|
||||||
private cryptoService: CryptoService,
|
|
||||||
private policyService: PolicyService,
|
private policyService: PolicyService,
|
||||||
|
private modalService: ModalService,
|
||||||
private logService: LogService
|
private logService: LogService
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
@@ -113,70 +113,11 @@ export class OrganizationOptionsComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async toggleResetPasswordEnrollment(org: Organization) {
|
async toggleResetPasswordEnrollment(org: Organization) {
|
||||||
// Set variables
|
this.modalService.open(EnrollMasterPasswordReset, {
|
||||||
let keyString: string = null;
|
allowMultipleModals: true,
|
||||||
let toastStringRef = "withdrawPasswordResetSuccess";
|
data: {
|
||||||
|
organization: org,
|
||||||
// Enrolling
|
},
|
||||||
if (!org.resetPasswordEnrolled) {
|
});
|
||||||
// Alert user about enrollment
|
|
||||||
const confirmed = await this.platformUtilsService.showDialog(
|
|
||||||
this.i18nService.t("resetPasswordEnrollmentWarning"),
|
|
||||||
null,
|
|
||||||
this.i18nService.t("yes"),
|
|
||||||
this.i18nService.t("no"),
|
|
||||||
"warning"
|
|
||||||
);
|
|
||||||
if (!confirmed) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Retrieve Public Key
|
|
||||||
this.actionPromise = this.apiService
|
|
||||||
.getOrganizationKeys(org.id)
|
|
||||||
.then(async (response) => {
|
|
||||||
if (response == null) {
|
|
||||||
throw new Error(this.i18nService.t("resetPasswordOrgKeysError"));
|
|
||||||
}
|
|
||||||
|
|
||||||
const publicKey = Utils.fromB64ToArray(response.publicKey);
|
|
||||||
|
|
||||||
// RSA Encrypt user's encKey.key with organization public key
|
|
||||||
const encKey = await this.cryptoService.getEncKey();
|
|
||||||
const encryptedKey = await this.cryptoService.rsaEncrypt(encKey.key, publicKey.buffer);
|
|
||||||
keyString = encryptedKey.encryptedString;
|
|
||||||
toastStringRef = "enrollPasswordResetSuccess";
|
|
||||||
|
|
||||||
// Create request and execute enrollment
|
|
||||||
const request = new OrganizationUserResetPasswordEnrollmentRequest();
|
|
||||||
request.resetPasswordKey = keyString;
|
|
||||||
return this.apiService.putOrganizationUserResetPasswordEnrollment(
|
|
||||||
org.id,
|
|
||||||
org.userId,
|
|
||||||
request
|
|
||||||
);
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
return this.syncService.fullSync(true);
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// Withdrawal
|
|
||||||
const request = new OrganizationUserResetPasswordEnrollmentRequest();
|
|
||||||
request.resetPasswordKey = keyString;
|
|
||||||
this.actionPromise = this.apiService
|
|
||||||
.putOrganizationUserResetPasswordEnrollment(org.id, org.userId, request)
|
|
||||||
.then(() => {
|
|
||||||
return this.syncService.fullSync(true);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
await this.actionPromise;
|
|
||||||
this.platformUtilsService.showToast("success", null, this.i18nService.t(toastStringRef));
|
|
||||||
await this.load();
|
|
||||||
} catch (e) {
|
|
||||||
this.platformUtilsService.showToast("error", this.i18nService.t("errorOccurred"), e.message);
|
|
||||||
this.logService.error(e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
import { Component, Input } from "@angular/core";
|
||||||
|
|
||||||
|
import { Organization } from "jslib-common/models/domain/organization";
|
||||||
|
|
||||||
|
import { VaultFilterComponent } from "./vault-filter.component";
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: "app-organization-vault-filter",
|
||||||
|
templateUrl: "vault-filter.component.html",
|
||||||
|
})
|
||||||
|
export class OrganizationVaultFilterComponent extends VaultFilterComponent {
|
||||||
|
hideOrganizations = true;
|
||||||
|
hideFavorites = true;
|
||||||
|
hideFolders = true;
|
||||||
|
|
||||||
|
organization: Organization;
|
||||||
|
|
||||||
|
async initCollections() {
|
||||||
|
if (this.organization.canEditAnyCollection) {
|
||||||
|
return await this.vaultFilterService.buildAdminCollections(this.organization.id);
|
||||||
|
}
|
||||||
|
return await this.vaultFilterService.buildCollections(this.organization.id);
|
||||||
|
}
|
||||||
|
|
||||||
|
async reloadCollectionsAndFolders() {
|
||||||
|
this.collections = await this.initCollections();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -27,7 +27,6 @@
|
|||||||
appAutofocus
|
appAutofocus
|
||||||
/>
|
/>
|
||||||
<app-organization-filter
|
<app-organization-filter
|
||||||
*ngIf="showOrgFilter"
|
|
||||||
[hide]="hideOrganizations"
|
[hide]="hideOrganizations"
|
||||||
[activeFilter]="activeFilter"
|
[activeFilter]="activeFilter"
|
||||||
[collapsedFilterNodes]="collapsedFilterNodes"
|
[collapsedFilterNodes]="collapsedFilterNodes"
|
||||||
@@ -39,7 +38,7 @@
|
|||||||
></app-organization-filter>
|
></app-organization-filter>
|
||||||
<div class="filter">
|
<div class="filter">
|
||||||
<app-status-filter
|
<app-status-filter
|
||||||
[hideFavorites]="!showFavorites"
|
[hideFavorites]="hideFavorites"
|
||||||
[hideTrash]="hideTrash"
|
[hideTrash]="hideTrash"
|
||||||
[activeFilter]="activeFilter"
|
[activeFilter]="activeFilter"
|
||||||
(onFilterChange)="applyFilter($event)"
|
(onFilterChange)="applyFilter($event)"
|
||||||
@@ -55,7 +54,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="filter">
|
<div class="filter">
|
||||||
<app-folder-filter
|
<app-folder-filter
|
||||||
[hide]="!showFolders"
|
[hide]="hideFolders"
|
||||||
[activeFilter]="activeFilter"
|
[activeFilter]="activeFilter"
|
||||||
[collapsedFilterNodes]="collapsedFilterNodes"
|
[collapsedFilterNodes]="collapsedFilterNodes"
|
||||||
[folderNodes]="folders"
|
[folderNodes]="folders"
|
||||||
|
|||||||
@@ -1,34 +1,26 @@
|
|||||||
import { Component, EventEmitter, Input, Output } from "@angular/core";
|
import { Component, EventEmitter, Output } from "@angular/core";
|
||||||
|
|
||||||
import { VaultFilterComponent as BaseVaultFilterComponent } from "jslib-angular/modules/vault-filter/vault-filter.component";
|
import { VaultFilterComponent as BaseVaultFilterComponent } from "jslib-angular/modules/vault-filter/vault-filter.component";
|
||||||
import { VaultFilterService } from "jslib-angular/modules/vault-filter/vault-filter.service";
|
|
||||||
import { Organization } from "jslib-common/models/domain/organization";
|
import { VaultFilterService } from "./vault-filter.service";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-vault-filter",
|
selector: "app-vault-filter",
|
||||||
templateUrl: "vault-filter.component.html",
|
templateUrl: "vault-filter.component.html",
|
||||||
})
|
})
|
||||||
export class VaultFilterComponent extends BaseVaultFilterComponent {
|
export class VaultFilterComponent extends BaseVaultFilterComponent {
|
||||||
@Input() showOrgFilter = true;
|
|
||||||
@Input() showFolders = true;
|
|
||||||
@Input() showFavorites = true;
|
|
||||||
|
|
||||||
@Output() onSearchTextChanged = new EventEmitter<string>();
|
@Output() onSearchTextChanged = new EventEmitter<string>();
|
||||||
|
|
||||||
searchPlaceholder: string;
|
searchPlaceholder: string;
|
||||||
searchText = "";
|
searchText = "";
|
||||||
|
|
||||||
organization: Organization;
|
constructor(protected vaultFilterService: VaultFilterService) {
|
||||||
|
// This empty constructor is required to provide the web vaultFilterService subclass to super()
|
||||||
constructor(vaultFilterService: VaultFilterService) {
|
// TODO: refactor this to use proper dependency injection
|
||||||
super(vaultFilterService);
|
super(vaultFilterService);
|
||||||
}
|
}
|
||||||
|
|
||||||
searchTextChanged() {
|
searchTextChanged() {
|
||||||
this.onSearchTextChanged.emit(this.searchText);
|
this.onSearchTextChanged.emit(this.searchText);
|
||||||
}
|
}
|
||||||
|
|
||||||
async initCollections() {
|
|
||||||
return await this.vaultFilterService.buildCollections(this.organization?.id);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,5 @@
|
|||||||
import { NgModule } from "@angular/core";
|
import { NgModule } from "@angular/core";
|
||||||
|
|
||||||
import { VaultFilterService } from "jslib-angular/modules/vault-filter/vault-filter.service";
|
|
||||||
import { CipherService } from "jslib-common/abstractions/cipher.service";
|
|
||||||
import { CollectionService } from "jslib-common/abstractions/collection.service";
|
|
||||||
import { FolderService } from "jslib-common/abstractions/folder.service";
|
|
||||||
import { OrganizationService } from "jslib-common/abstractions/organization.service";
|
|
||||||
import { PolicyService } from "jslib-common/abstractions/policy.service";
|
|
||||||
import { StateService } from "jslib-common/abstractions/state.service";
|
|
||||||
|
|
||||||
import { SharedModule } from "../shared.module";
|
import { SharedModule } from "../shared.module";
|
||||||
|
|
||||||
import { CollectionFilterComponent } from "./components/collection-filter.component";
|
import { CollectionFilterComponent } from "./components/collection-filter.component";
|
||||||
@@ -17,7 +9,9 @@ import { OrganizationFilterComponent } from "./components/organization-filter.co
|
|||||||
import { OrganizationOptionsComponent } from "./components/organization-options.component";
|
import { OrganizationOptionsComponent } from "./components/organization-options.component";
|
||||||
import { StatusFilterComponent } from "./components/status-filter.component";
|
import { StatusFilterComponent } from "./components/status-filter.component";
|
||||||
import { TypeFilterComponent } from "./components/type-filter.component";
|
import { TypeFilterComponent } from "./components/type-filter.component";
|
||||||
|
import { OrganizationVaultFilterComponent } from "./organization-vault-filter.component";
|
||||||
import { VaultFilterComponent } from "./vault-filter.component";
|
import { VaultFilterComponent } from "./vault-filter.component";
|
||||||
|
import { VaultFilterService } from "./vault-filter.service";
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [SharedModule],
|
imports: [SharedModule],
|
||||||
@@ -29,22 +23,10 @@ import { VaultFilterComponent } from "./vault-filter.component";
|
|||||||
OrganizationOptionsComponent,
|
OrganizationOptionsComponent,
|
||||||
StatusFilterComponent,
|
StatusFilterComponent,
|
||||||
TypeFilterComponent,
|
TypeFilterComponent,
|
||||||
|
OrganizationVaultFilterComponent,
|
||||||
LinkSsoComponent,
|
LinkSsoComponent,
|
||||||
],
|
],
|
||||||
exports: [VaultFilterComponent],
|
exports: [VaultFilterComponent, OrganizationVaultFilterComponent],
|
||||||
providers: [
|
providers: [VaultFilterService],
|
||||||
{
|
|
||||||
provide: VaultFilterService,
|
|
||||||
useClass: VaultFilterService,
|
|
||||||
deps: [
|
|
||||||
StateService,
|
|
||||||
OrganizationService,
|
|
||||||
FolderService,
|
|
||||||
CipherService,
|
|
||||||
CollectionService,
|
|
||||||
PolicyService,
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
})
|
||||||
export class VaultFilterModule {}
|
export class VaultFilterModule {}
|
||||||
|
|||||||
@@ -1,3 +1,54 @@
|
|||||||
import { VaultFilterService as BaseVaultFilterService } from "jslib-angular/modules/vault-filter/vault-filter.service";
|
import { Injectable } from "@angular/core";
|
||||||
|
|
||||||
export class VaultFilterService extends BaseVaultFilterService {}
|
import { DynamicTreeNode } from "jslib-angular/modules/vault-filter/models/dynamic-tree-node.model";
|
||||||
|
import { VaultFilterService as BaseVaultFilterService } from "jslib-angular/modules/vault-filter/vault-filter.service";
|
||||||
|
import { ApiService } from "jslib-common/abstractions/api.service";
|
||||||
|
import { CipherService } from "jslib-common/abstractions/cipher.service";
|
||||||
|
import { CollectionService } from "jslib-common/abstractions/collection.service";
|
||||||
|
import { FolderService } from "jslib-common/abstractions/folder.service";
|
||||||
|
import { OrganizationService } from "jslib-common/abstractions/organization.service";
|
||||||
|
import { PolicyService } from "jslib-common/abstractions/policy.service";
|
||||||
|
import { StateService } from "jslib-common/abstractions/state.service";
|
||||||
|
import { CollectionData } from "jslib-common/models/data/collectionData";
|
||||||
|
import { Collection } from "jslib-common/models/domain/collection";
|
||||||
|
import { CollectionDetailsResponse } from "jslib-common/models/response/collectionResponse";
|
||||||
|
import { CollectionView } from "jslib-common/models/view/collectionView";
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class VaultFilterService extends BaseVaultFilterService {
|
||||||
|
constructor(
|
||||||
|
stateService: StateService,
|
||||||
|
organizationService: OrganizationService,
|
||||||
|
folderService: FolderService,
|
||||||
|
cipherService: CipherService,
|
||||||
|
collectionService: CollectionService,
|
||||||
|
policyService: PolicyService,
|
||||||
|
protected apiService: ApiService
|
||||||
|
) {
|
||||||
|
super(
|
||||||
|
stateService,
|
||||||
|
organizationService,
|
||||||
|
folderService,
|
||||||
|
cipherService,
|
||||||
|
collectionService,
|
||||||
|
policyService
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
async buildAdminCollections(organizationId: string) {
|
||||||
|
let result: CollectionView[] = [];
|
||||||
|
const collectionResponse = await this.apiService.getCollections(organizationId);
|
||||||
|
if (collectionResponse?.data != null && collectionResponse.data.length) {
|
||||||
|
const collectionDomains = collectionResponse.data.map(
|
||||||
|
(r: CollectionDetailsResponse) => new Collection(new CollectionData(r))
|
||||||
|
);
|
||||||
|
result = await this.collectionService.decryptMany(collectionDomains);
|
||||||
|
}
|
||||||
|
|
||||||
|
const nestedCollections = await this.collectionService.getAllNested(result);
|
||||||
|
return new DynamicTreeNode<CollectionView>({
|
||||||
|
fullList: result,
|
||||||
|
nestedList: nestedCollections,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<button
|
<button
|
||||||
bit-badge
|
bitBadge
|
||||||
[style.color]="textColor"
|
[style.color]="textColor"
|
||||||
[style.background-color]="color"
|
[style.background-color]="color"
|
||||||
appA11yTitle="{{ organizationName }}"
|
appA11yTitle="{{ organizationName }}"
|
||||||
|
|||||||
@@ -4,15 +4,12 @@
|
|||||||
<div class="groupings">
|
<div class="groupings">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="inner-content">
|
<div class="inner-content">
|
||||||
<app-vault-filter
|
<app-organization-vault-filter
|
||||||
#vaultFilter
|
#vaultFilter
|
||||||
[showFolders]="false"
|
|
||||||
[showFavorites]="false"
|
|
||||||
[activeFilter]="activeFilter"
|
[activeFilter]="activeFilter"
|
||||||
[showOrgFilter]="false"
|
|
||||||
(onFilterChange)="applyVaultFilter($event)"
|
(onFilterChange)="applyVaultFilter($event)"
|
||||||
(onSearchTextChanged)="filterSearchText($event)"
|
(onSearchTextChanged)="filterSearchText($event)"
|
||||||
></app-vault-filter>
|
></app-organization-vault-filter>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import { AddEditComponent } from "../../../../organizations/vault/add-edit.compo
|
|||||||
import { AttachmentsComponent } from "../../../../organizations/vault/attachments.component";
|
import { AttachmentsComponent } from "../../../../organizations/vault/attachments.component";
|
||||||
import { CiphersComponent } from "../../../../organizations/vault/ciphers.component";
|
import { CiphersComponent } from "../../../../organizations/vault/ciphers.component";
|
||||||
import { CollectionsComponent } from "../../../../organizations/vault/collections.component";
|
import { CollectionsComponent } from "../../../../organizations/vault/collections.component";
|
||||||
import { VaultFilterComponent } from "../../../vault-filter/vault-filter.component";
|
import { OrganizationVaultFilterComponent } from "../../../vault-filter/organization-vault-filter.component";
|
||||||
import { VaultService } from "../../vault.service";
|
import { VaultService } from "../../vault.service";
|
||||||
|
|
||||||
const BroadcasterSubscriptionId = "OrgVaultComponent";
|
const BroadcasterSubscriptionId = "OrgVaultComponent";
|
||||||
@@ -39,7 +39,8 @@ const BroadcasterSubscriptionId = "OrgVaultComponent";
|
|||||||
templateUrl: "organization-vault.component.html",
|
templateUrl: "organization-vault.component.html",
|
||||||
})
|
})
|
||||||
export class OrganizationVaultComponent implements OnInit, OnDestroy {
|
export class OrganizationVaultComponent implements OnInit, OnDestroy {
|
||||||
@ViewChild("vaultFilter", { static: true }) vaultFilterComponent: VaultFilterComponent;
|
@ViewChild("vaultFilter", { static: true })
|
||||||
|
vaultFilterComponent: OrganizationVaultFilterComponent;
|
||||||
@ViewChild(CiphersComponent, { static: true }) ciphersComponent: CiphersComponent;
|
@ViewChild(CiphersComponent, { static: true }) ciphersComponent: CiphersComponent;
|
||||||
@ViewChild("attachments", { read: ViewContainerRef, static: true })
|
@ViewChild("attachments", { read: ViewContainerRef, static: true })
|
||||||
attachmentsModalRef: ViewContainerRef;
|
attachmentsModalRef: ViewContainerRef;
|
||||||
@@ -57,6 +58,11 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy {
|
|||||||
trashCleanupWarning: string = null;
|
trashCleanupWarning: string = null;
|
||||||
activeFilter: VaultFilter = new VaultFilter();
|
activeFilter: VaultFilter = new VaultFilter();
|
||||||
|
|
||||||
|
// This is a hack to avoid redundant api calls that fetch OrganizationVaultFilterComponent collections
|
||||||
|
// When it makes sense to do so we should leverage some other communication method for change events that isn't directly tied to the query param for organizationId
|
||||||
|
// i.e. exposing the VaultFiltersService to the OrganizationSwitcherComponent to make relevant updates from a change event instead of just depending on the router
|
||||||
|
firstLoaded = true;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private organizationService: OrganizationService,
|
private organizationService: OrganizationService,
|
||||||
@@ -95,11 +101,7 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy {
|
|||||||
case "syncCompleted":
|
case "syncCompleted":
|
||||||
if (message.successfully) {
|
if (message.successfully) {
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
this.vaultFilterComponent.reloadCollectionsAndFolders(
|
this.vaultFilterComponent.reloadCollectionsAndFolders(),
|
||||||
new VaultFilter({
|
|
||||||
selectedOrganizationId: this.organization.id,
|
|
||||||
} as Partial<VaultFilter>)
|
|
||||||
),
|
|
||||||
this.ciphersComponent.refresh(),
|
this.ciphersComponent.refresh(),
|
||||||
]);
|
]);
|
||||||
this.changeDetectorRef.detectChanges();
|
this.changeDetectorRef.detectChanges();
|
||||||
@@ -109,9 +111,12 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
await this.vaultFilterComponent.reloadCollectionsAndFolders(
|
|
||||||
new VaultFilter({ selectedOrganizationId: this.organization.id } as Partial<VaultFilter>)
|
if (!this.firstLoaded) {
|
||||||
);
|
await this.vaultFilterComponent.reloadCollectionsAndFolders();
|
||||||
|
}
|
||||||
|
this.firstLoaded = false;
|
||||||
|
|
||||||
await this.ciphersComponent.reload();
|
await this.ciphersComponent.reload();
|
||||||
|
|
||||||
if (qParams.viewEvents != null) {
|
if (qParams.viewEvents != null) {
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
appA11yTitle="{{ 'learnMore' | i18n }}"
|
appA11yTitle="{{ 'learnMore' | i18n }}"
|
||||||
href="https://bitwarden.com/help/provider-users/"
|
href="https://bitwarden.com/help/user-types-access-control/"
|
||||||
>
|
>
|
||||||
<i class="bwi bwi-question-circle" aria-hidden="true"></i>
|
<i class="bwi bwi-question-circle" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { NgModule } from "@angular/core";
|
|||||||
|
|
||||||
import { LooseComponentsModule } from "./modules/loose-components.module";
|
import { LooseComponentsModule } from "./modules/loose-components.module";
|
||||||
import { OrganizationManageModule } from "./modules/organizations/manage/organization-manage.module";
|
import { OrganizationManageModule } from "./modules/organizations/manage/organization-manage.module";
|
||||||
|
import { OrganizationUserModule } from "./modules/organizations/users/organization-user.module";
|
||||||
import { PipesModule } from "./modules/pipes/pipes.module";
|
import { PipesModule } from "./modules/pipes/pipes.module";
|
||||||
import { SharedModule } from "./modules/shared.module";
|
import { SharedModule } from "./modules/shared.module";
|
||||||
import { VaultFilterModule } from "./modules/vault-filter/vault-filter.module";
|
import { VaultFilterModule } from "./modules/vault-filter/vault-filter.module";
|
||||||
@@ -15,6 +16,7 @@ import { OrganizationBadgeModule } from "./modules/vault/modules/organization-ba
|
|||||||
OrganizationBadgeModule,
|
OrganizationBadgeModule,
|
||||||
PipesModule,
|
PipesModule,
|
||||||
OrganizationManageModule,
|
OrganizationManageModule,
|
||||||
|
OrganizationUserModule,
|
||||||
],
|
],
|
||||||
exports: [LooseComponentsModule, VaultFilterModule, OrganizationBadgeModule, PipesModule],
|
exports: [LooseComponentsModule, VaultFilterModule, OrganizationBadgeModule, PipesModule],
|
||||||
bootstrap: [],
|
bootstrap: [],
|
||||||
|
|||||||
@@ -17,13 +17,7 @@
|
|||||||
<small class="form-text text-muted">{{ "breachCheckUsernameEmail" | i18n }}</small>
|
<small class="form-text text-muted">{{ "breachCheckUsernameEmail" | i18n }}</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button bitButton buttonType="primary" class="btn-submit" type="submit" [disabled]="form.loading">
|
||||||
bit-button
|
|
||||||
buttonType="primary"
|
|
||||||
class="btn-submit"
|
|
||||||
type="submit"
|
|
||||||
[disabled]="form.loading"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
||||||
<span>{{ "checkBreaches" | i18n }}</span>
|
<span>{{ "checkBreaches" | i18n }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<p>{{ "exposedPasswordsReportDesc" | i18n }}</p>
|
<p>{{ "exposedPasswordsReportDesc" | i18n }}</p>
|
||||||
<button
|
<button
|
||||||
bit-button
|
bitButton
|
||||||
buttonType="primary"
|
buttonType="primary"
|
||||||
type="button"
|
type="button"
|
||||||
class="btn-submit"
|
class="btn-submit"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<p class="tw-mb-0">{{ report.description | i18n }}</p>
|
<p class="tw-mb-0">{{ report.description | i18n }}</p>
|
||||||
</div>
|
</div>
|
||||||
<span
|
<span
|
||||||
bit-badge
|
bitBadge
|
||||||
badgeType="success"
|
badgeType="success"
|
||||||
class="tw-absolute tw-left-2 tw-top-2 tw-leading-none"
|
class="tw-absolute tw-left-2 tw-top-2 tw-leading-none"
|
||||||
*ngIf="premium"
|
*ngIf="premium"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<div class="row mt-4">
|
<div class="row mt-4">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<a bit-button routerLink="./" *ngIf="!homepage">
|
<a bitButton routerLink="./" *ngIf="!homepage">
|
||||||
<i class="bwi bwi-angle-left" aria-hidden="true"></i>
|
<i class="bwi bwi-angle-left" aria-hidden="true"></i>
|
||||||
{{ "backToReports" | i18n }}
|
{{ "backToReports" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<ul class="filter-options">
|
<ul class="filter-options">
|
||||||
<li class="filter-option" [ngClass]="{ active: selectedAll }">
|
<li class="filter-option" [ngClass]="{ active: selectedAll }">
|
||||||
<span class="filter-buttons">
|
<span class="filter-buttons">
|
||||||
<button bit-button class="filter-button" appStopClick (click)="selectAll()">
|
<button bitButton class="filter-button" appStopClick (click)="selectAll()">
|
||||||
<i class="bwi bwi-fw bwi-filter"></i>{{ "allSends" | i18n }}
|
<i class="bwi bwi-fw bwi-filter"></i>{{ "allSends" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
<li class="filter-option" [ngClass]="{ active: selectedType === sendType.Text }">
|
<li class="filter-option" [ngClass]="{ active: selectedType === sendType.Text }">
|
||||||
<span class="filter-buttons">
|
<span class="filter-buttons">
|
||||||
<button
|
<button
|
||||||
bit-button
|
bitButton
|
||||||
class="filter-button"
|
class="filter-button"
|
||||||
appStopClick
|
appStopClick
|
||||||
(click)="selectType(sendType.Text)"
|
(click)="selectType(sendType.Text)"
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
<li class="filter-option" [ngClass]="{ active: selectedType === sendType.File }">
|
<li class="filter-option" [ngClass]="{ active: selectedType === sendType.File }">
|
||||||
<span class="filter-buttons">
|
<span class="filter-buttons">
|
||||||
<button
|
<button
|
||||||
bit-button
|
bitButton
|
||||||
class="filter-button"
|
class="filter-button"
|
||||||
appStopClick
|
appStopClick
|
||||||
(click)="selectType(sendType.File)"
|
(click)="selectType(sendType.File)"
|
||||||
@@ -160,19 +160,15 @@
|
|||||||
<i class="bwi bwi-ellipsis-v bwi-lg" aria-hidden="true"></i>
|
<i class="bwi bwi-ellipsis-v bwi-lg" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
<bit-menu #sendOptions>
|
<bit-menu #sendOptions>
|
||||||
<button bit-menu-item (click)="copy(s)">
|
<button bitMenuItem (click)="copy(s)">
|
||||||
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
|
||||||
{{ "copySendLink" | i18n }}
|
{{ "copySendLink" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button bitMenuItem (click)="removePassword(s)" *ngIf="s.password && !disableSend">
|
||||||
bit-menu-item
|
|
||||||
(click)="removePassword(s)"
|
|
||||||
*ngIf="s.password && !disableSend"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-fw bwi-close" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-close" aria-hidden="true"></i>
|
||||||
{{ "removePassword" | i18n }}
|
{{ "removePassword" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bit-menu-item (click)="delete(s)">
|
<button bitMenuItem (click)="delete(s)">
|
||||||
<span class="tw-text-danger">
|
<span class="tw-text-danger">
|
||||||
<i class="bwi bwi-fw bwi-trash" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-trash" aria-hidden="true"></i>
|
||||||
{{ "delete" | i18n }}
|
{{ "delete" | i18n }}
|
||||||
|
|||||||
@@ -14,13 +14,13 @@
|
|||||||
<div class="card border-danger">
|
<div class="card border-danger">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<p>{{ "dangerZoneDesc" | i18n }}</p>
|
<p>{{ "dangerZoneDesc" | i18n }}</p>
|
||||||
<button bit-button buttonType="danger" (click)="deauthorizeSessions()">
|
<button bitButton buttonType="danger" (click)="deauthorizeSessions()">
|
||||||
{{ "deauthorizeSessions" | i18n }}
|
{{ "deauthorizeSessions" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bit-button buttonType="danger" (click)="purgeVault()">
|
<button bitButton buttonType="danger" (click)="purgeVault()">
|
||||||
{{ "purgeVault" | i18n }}
|
{{ "purgeVault" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bit-button buttonType="danger" (click)="deleteAccount()">
|
<button bitButton buttonType="danger" (click)="deleteAccount()">
|
||||||
{{ "deleteAccount" | i18n }}
|
{{ "deleteAccount" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button bit-button buttonType="primary" class="btn-submit" [disabled]="form.loading">
|
<button bitButton buttonType="primary" class="btn-submit" [disabled]="form.loading">
|
||||||
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
||||||
<span>{{ "changeKdf" | i18n }}</span>
|
<span>{{ "changeKdf" | i18n }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button bit-button buttonType="primary" class="btn-submit" [disabled]="form.loading">
|
<button bitButton buttonType="primary" class="btn-submit" [disabled]="form.loading">
|
||||||
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
||||||
<span>{{ "changeMasterPassword" | i18n }}</span>
|
<span>{{ "changeMasterPassword" | i18n }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
{{ "paymentMethod" | i18n }}
|
{{ "paymentMethod" | i18n }}
|
||||||
</h1>
|
</h1>
|
||||||
<button
|
<button
|
||||||
bit-button
|
bitButton
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
(click)="load()"
|
(click)="load()"
|
||||||
class="tw-ml-auto"
|
class="tw-ml-auto"
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
<strong>{{ creditOrBalance | currency: "$" }}</strong>
|
<strong>{{ creditOrBalance | currency: "$" }}</strong>
|
||||||
</p>
|
</p>
|
||||||
<p>{{ "creditAppliedDesc" | i18n }}</p>
|
<p>{{ "creditAppliedDesc" | i18n }}</p>
|
||||||
<button bit-button buttonType="secondary" (click)="addCredit()" *ngIf="!showAddCredit">
|
<button bitButton buttonType="secondary" (click)="addCredit()" *ngIf="!showAddCredit">
|
||||||
{{ "addCredit" | i18n }}
|
{{ "addCredit" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<app-add-credit
|
<app-add-credit
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
{{ paymentSource.description }}
|
{{ paymentSource.description }}
|
||||||
</p>
|
</p>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<button bit-button buttonType="secondary" (click)="changePayment()" *ngIf="!showAdjustPayment">
|
<button bitButton buttonType="secondary" (click)="changePayment()" *ngIf="!showAdjustPayment">
|
||||||
{{ (paymentSource ? "changePaymentMethod" : "addPaymentMethod") | i18n }}
|
{{ (paymentSource ? "changePaymentMethod" : "addPaymentMethod") | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<app-adjust-payment
|
<app-adjust-payment
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
{{ "premiumPrice" | i18n: (premiumPrice | currency: "$") }}
|
{{ "premiumPrice" | i18n: (premiumPrice | currency: "$") }}
|
||||||
</p>
|
</p>
|
||||||
<a
|
<a
|
||||||
bit-button
|
bitButton
|
||||||
href="https://vault.bitwarden.com/#/settings/premium"
|
href="https://vault.bitwarden.com/#/settings/premium"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
}}</small>
|
}}</small>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
bit-button
|
bitButton
|
||||||
buttonType="primary"
|
buttonType="primary"
|
||||||
type="submit"
|
type="submit"
|
||||||
class="btn-submit"
|
class="btn-submit"
|
||||||
@@ -125,13 +125,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<small class="text-muted font-italic">{{ "paymentChargedAnnually" | i18n }}</small>
|
<small class="text-muted font-italic">{{ "paymentChargedAnnually" | i18n }}</small>
|
||||||
<button
|
<button bitButton buttonType="primary" type="submit" class="btn-submit" [disabled]="form.loading">
|
||||||
bit-button
|
|
||||||
buttonType="primary"
|
|
||||||
type="submit"
|
|
||||||
class="btn-submit"
|
|
||||||
[disabled]="form.loading"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
||||||
<span>{{ "submit" | i18n }}</span>
|
<span>{{ "submit" | i18n }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -8,10 +8,10 @@
|
|||||||
<p>
|
<p>
|
||||||
{{ "userApiKeyDesc" | i18n }}
|
{{ "userApiKeyDesc" | i18n }}
|
||||||
</p>
|
</p>
|
||||||
<button bit-button buttonType="secondary" (click)="viewUserApiKey()">
|
<button bitButton buttonType="secondary" (click)="viewUserApiKey()">
|
||||||
{{ "viewApiKey" | i18n }}
|
{{ "viewApiKey" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bit-button buttonType="secondary" (click)="rotateUserApiKey()">
|
<button bitButton buttonType="secondary" (click)="rotateUserApiKey()">
|
||||||
{{ "rotateApiKey" | i18n }}
|
{{ "rotateApiKey" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<ng-template #viewUserApiKeyTemplate></ng-template>
|
<ng-template #viewUserApiKeyTemplate></ng-template>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<p *ngIf="organizationId">{{ "twoStepLoginOrganizationDesc" | i18n }}</p>
|
<p *ngIf="organizationId">{{ "twoStepLoginOrganizationDesc" | i18n }}</p>
|
||||||
<bit-callout type="warning" *ngIf="!organizationId">
|
<bit-callout type="warning" *ngIf="!organizationId">
|
||||||
<p>{{ "twoStepLoginRecoveryWarning" | i18n }}</p>
|
<p>{{ "twoStepLoginRecoveryWarning" | i18n }}</p>
|
||||||
<button bit-button buttonType="secondary" (click)="recoveryCode()">
|
<button bitButton buttonType="secondary" (click)="recoveryCode()">
|
||||||
{{ "viewRecoveryCode" | i18n }}
|
{{ "viewRecoveryCode" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</bit-callout>
|
</bit-callout>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="ml-auto">
|
<div class="ml-auto">
|
||||||
<button
|
<button
|
||||||
bit-button
|
bitButton
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
[disabled]="!canAccessPremium && p.premium"
|
[disabled]="!canAccessPremium && p.premium"
|
||||||
(click)="manage(p.type)"
|
(click)="manage(p.type)"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
{{ "billingHistory" | i18n }}
|
{{ "billingHistory" | i18n }}
|
||||||
</h1>
|
</h1>
|
||||||
<button
|
<button
|
||||||
bit-button
|
bitButton
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
(click)="load()"
|
(click)="load()"
|
||||||
class="tw-ml-auto"
|
class="tw-ml-auto"
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
>
|
>
|
||||||
<p>{{ "subscriptionPendingCanceled" | i18n }}</p>
|
<p>{{ "subscriptionPendingCanceled" | i18n }}</p>
|
||||||
<button
|
<button
|
||||||
bit-button
|
bitButton
|
||||||
type="button"
|
type="button"
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
#reinstateBtn
|
#reinstateBtn
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
<dt>{{ "status" | i18n }}</dt>
|
<dt>{{ "status" | i18n }}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<span class="text-capitalize">{{ (subscription && subscription.status) || "-" }}</span>
|
<span class="text-capitalize">{{ (subscription && subscription.status) || "-" }}</span>
|
||||||
<span bit-badge badgeType="warning" *ngIf="subscriptionMarkedForCancel">{{
|
<span bitBadge badgeType="warning" *ngIf="subscriptionMarkedForCancel">{{
|
||||||
"pendingCancellation" | i18n
|
"pendingCancellation" | i18n
|
||||||
}}</span>
|
}}</span>
|
||||||
</dd>
|
</dd>
|
||||||
@@ -96,11 +96,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<ng-container *ngIf="selfHosted">
|
<ng-container *ngIf="selfHosted">
|
||||||
<div>
|
<div>
|
||||||
<button type="button" bit-button buttonType="secondary" (click)="updateLicense()">
|
<button type="button" bitButton buttonType="secondary" (click)="updateLicense()">
|
||||||
{{ "updateLicense" | i18n }}
|
{{ "updateLicense" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<a
|
<a
|
||||||
bit-button
|
bitButton
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
href="https://vault.bitwarden.com/#/settings/subscription"
|
href="https://vault.bitwarden.com/#/settings/subscription"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@@ -131,7 +131,7 @@
|
|||||||
<ng-container *ngIf="!selfHosted">
|
<ng-container *ngIf="!selfHosted">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<button
|
<button
|
||||||
bit-button
|
bitButton
|
||||||
type="button"
|
type="button"
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
(click)="downloadLicense()"
|
(click)="downloadLicense()"
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
{{ "downloadLicense" | i18n }}
|
{{ "downloadLicense" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
bit-button
|
bitButton
|
||||||
#cancelBtn
|
#cancelBtn
|
||||||
type="button"
|
type="button"
|
||||||
buttonType="danger"
|
buttonType="danger"
|
||||||
@@ -171,11 +171,11 @@
|
|||||||
<ng-container *ngIf="subscription && !subscription.cancelled && !subscriptionMarkedForCancel">
|
<ng-container *ngIf="subscription && !subscription.cancelled && !subscriptionMarkedForCancel">
|
||||||
<div class="mt-3">
|
<div class="mt-3">
|
||||||
<div class="d-flex" *ngIf="!showAdjustStorage">
|
<div class="d-flex" *ngIf="!showAdjustStorage">
|
||||||
<button bit-button type="button" buttonType="secondary" (click)="adjustStorage(true)">
|
<button bitButton type="button" buttonType="secondary" (click)="adjustStorage(true)">
|
||||||
{{ "addStorage" | i18n }}
|
{{ "addStorage" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
bit-button
|
bitButton
|
||||||
type="button"
|
type="button"
|
||||||
buttonType="secondary"
|
buttonType="secondary"
|
||||||
class="tw-ml-1"
|
class="tw-ml-1"
|
||||||
|
|||||||
@@ -40,11 +40,13 @@ export class GeneratorComponent extends BaseGeneratorComponent {
|
|||||||
route,
|
route,
|
||||||
window
|
window
|
||||||
);
|
);
|
||||||
// Cannot use Firefox Relay on the web vault yet due to CORS issues with Firefox Relay API
|
if (platformUtilsService.isSelfHost()) {
|
||||||
this.forwardOptions.splice(
|
// Cannot use Firefox Relay on self hosted web vaults due to CORS issues with Firefox Relay API
|
||||||
this.forwardOptions.findIndex((o) => o.value === "firefoxrelay"),
|
this.forwardOptions.splice(
|
||||||
1
|
this.forwardOptions.findIndex((o) => o.value === "firefoxrelay"),
|
||||||
);
|
1
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async history() {
|
async history() {
|
||||||
|
|||||||
@@ -64,12 +64,12 @@
|
|||||||
</button>
|
</button>
|
||||||
<bit-menu #cipherOptions>
|
<bit-menu #cipherOptions>
|
||||||
<ng-container *ngIf="c.type === cipherType.Login && !c.isDeleted">
|
<ng-container *ngIf="c.type === cipherType.Login && !c.isDeleted">
|
||||||
<button bit-menu-item (click)="copy(c, c.login.username, 'username', 'Username')">
|
<button bitMenuItem (click)="copy(c, c.login.username, 'username', 'Username')">
|
||||||
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
|
||||||
{{ "copyUsername" | i18n }}
|
{{ "copyUsername" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
bit-menu-item
|
bitMenuItem
|
||||||
(click)="copy(c, c.login.password, 'password', 'Password')"
|
(click)="copy(c, c.login.password, 'password', 'Password')"
|
||||||
*ngIf="c.viewPassword"
|
*ngIf="c.viewPassword"
|
||||||
>
|
>
|
||||||
@@ -77,24 +77,24 @@
|
|||||||
{{ "copyPassword" | i18n }}
|
{{ "copyPassword" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
bit-menu-item
|
bitMenuItem
|
||||||
(click)="copy(c, c.login.totp, 'verificationCodeTotp', 'TOTP')"
|
(click)="copy(c, c.login.totp, 'verificationCodeTotp', 'TOTP')"
|
||||||
*ngIf="displayTotpCopyButton(c)"
|
*ngIf="displayTotpCopyButton(c)"
|
||||||
>
|
>
|
||||||
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-clone" aria-hidden="true"></i>
|
||||||
{{ "copyVerificationCode" | i18n }}
|
{{ "copyVerificationCode" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bit-menu-item *ngIf="c.login.canLaunch" (click)="launch(c.login.launchUri)">
|
<button bitMenuItem *ngIf="c.login.canLaunch" (click)="launch(c.login.launchUri)">
|
||||||
<i class="bwi bwi-fw bwi-share-square" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-share-square" aria-hidden="true"></i>
|
||||||
{{ "launch" | i18n }}
|
{{ "launch" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<button bit-menu-item (click)="attachments(c)">
|
<button bitMenuItem (click)="attachments(c)">
|
||||||
<i class="bwi bwi-fw bwi-paperclip" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-paperclip" aria-hidden="true"></i>
|
||||||
{{ "attachments" | i18n }}
|
{{ "attachments" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
bit-menu-item
|
bitMenuItem
|
||||||
*ngIf="((!organization && !c.organizationId) || organization) && !c.isDeleted"
|
*ngIf="((!organization && !c.organizationId) || organization) && !c.isDeleted"
|
||||||
(click)="clone(c)"
|
(click)="clone(c)"
|
||||||
>
|
>
|
||||||
@@ -102,26 +102,26 @@
|
|||||||
{{ "clone" | i18n }}
|
{{ "clone" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
bit-menu-item
|
bitMenuItem
|
||||||
*ngIf="!organization && !c.organizationId && !c.isDeleted"
|
*ngIf="!organization && !c.organizationId && !c.isDeleted"
|
||||||
(click)="share(c)"
|
(click)="share(c)"
|
||||||
>
|
>
|
||||||
<i class="bwi bwi-fw bwi-arrow-circle-right" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-arrow-circle-right" aria-hidden="true"></i>
|
||||||
{{ "moveToOrganization" | i18n }}
|
{{ "moveToOrganization" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bit-menu-item *ngIf="c.organizationId && !c.isDeleted" (click)="collections(c)">
|
<button bitMenuItem *ngIf="c.organizationId && !c.isDeleted" (click)="collections(c)">
|
||||||
<i class="bwi bwi-fw bwi-collection" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-collection" aria-hidden="true"></i>
|
||||||
{{ "collections" | i18n }}
|
{{ "collections" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bit-menu-item *ngIf="c.organizationId && accessEvents" (click)="events(c)">
|
<button bitMenuItem *ngIf="c.organizationId && accessEvents" (click)="events(c)">
|
||||||
<i class="bwi bwi-fw bwi-file-text" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-file-text" aria-hidden="true"></i>
|
||||||
{{ "eventLogs" | i18n }}
|
{{ "eventLogs" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bit-menu-item (click)="restore(c)" *ngIf="c.isDeleted">
|
<button bitMenuItem (click)="restore(c)" *ngIf="c.isDeleted">
|
||||||
<i class="bwi bwi-fw bwi-undo" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-undo" aria-hidden="true"></i>
|
||||||
{{ "restore" | i18n }}
|
{{ "restore" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<button bit-menu-item (click)="delete(c)">
|
<button bitMenuItem (click)="delete(c)">
|
||||||
<span class="tw-text-danger">
|
<span class="tw-text-danger">
|
||||||
<i class="bwi bwi-fw bwi-trash" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-trash" aria-hidden="true"></i>
|
||||||
{{ (c.isDeleted ? "permanentlyDelete" : "delete") | i18n }}
|
{{ (c.isDeleted ? "permanentlyDelete" : "delete") | i18n }}
|
||||||
|
|||||||
@@ -4163,7 +4163,7 @@
|
|||||||
"message": "Password reset success!"
|
"message": "Password reset success!"
|
||||||
},
|
},
|
||||||
"resetPasswordEnrollmentWarning": {
|
"resetPasswordEnrollmentWarning": {
|
||||||
"message": "Enrollment will allow organization administrators to change your master password. Are you sure you want to enroll?"
|
"message": "Enrollment will allow organization administrators to change your master password"
|
||||||
},
|
},
|
||||||
"resetPasswordPolicy": {
|
"resetPasswordPolicy": {
|
||||||
"message": "Master Password Reset"
|
"message": "Master Password Reset"
|
||||||
|
|||||||
Reference in New Issue
Block a user