mirror of
https://github.com/bitwarden/web
synced 2025-12-10 21:33:16 +00:00
Compare commits
40 Commits
feature/cl
...
v2022.5.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06227f27ab | ||
|
|
66391b4376 | ||
|
|
1c09629bbc | ||
|
|
e2d9498167 | ||
|
|
ec80782d8f | ||
|
|
3acee89646 | ||
|
|
589faf3608 | ||
|
|
639cc461ae | ||
|
|
4562920d30 | ||
|
|
c6f4e4de64 | ||
|
|
f323963a4e | ||
|
|
f6c8b6d8cb | ||
|
|
11f34be18e | ||
|
|
647e9555d0 | ||
|
|
ad7b6e6388 | ||
|
|
718ca197b5 | ||
|
|
338d593cd1 | ||
|
|
aa29a07678 | ||
|
|
0722522801 | ||
|
|
5731c6449b | ||
|
|
eaf083be44 | ||
|
|
8435c85c3c | ||
|
|
3d1c2dad74 | ||
|
|
2f632f7096 | ||
|
|
9b63c81b56 | ||
|
|
34cb463e94 | ||
|
|
7bbe3d7b28 | ||
|
|
0564b52f1f | ||
|
|
cb1f08d74b | ||
|
|
f3bf972d26 | ||
|
|
02256aad87 | ||
|
|
466e0c8c35 | ||
|
|
0543e76432 | ||
|
|
34527160fc | ||
|
|
f590fe5435 | ||
|
|
0f64c16c18 | ||
|
|
1632a24b1e | ||
|
|
0691af1dcd | ||
|
|
3e59617fb1 | ||
|
|
268b16ca98 |
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
|
||||||
|
|||||||
@@ -22,9 +22,9 @@ const routes: Routes = [
|
|||||||
component: ManageComponent,
|
component: ManageComponent,
|
||||||
canActivate: [PermissionsGuard],
|
canActivate: [PermissionsGuard],
|
||||||
data: {
|
data: {
|
||||||
permissions: [
|
permissions: NavigationPermissionsService.getPermissions("manage").concat(
|
||||||
NavigationPermissionsService.getPermissions("manage").concat(Permissions.ManageSso),
|
Permissions.ManageSso
|
||||||
],
|
),
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
|
|||||||
2
jslib
2
jslib
Submodule jslib updated: 1370006f6e...6f117b9901
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.5.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@bitwarden/web-vault",
|
"name": "@bitwarden/web-vault",
|
||||||
"version": "2.28.1",
|
"version": "2022.5.1",
|
||||||
"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.5.1",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"repository": "https://github.com/bitwarden/web",
|
"repository": "https://github.com/bitwarden/web",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ export class LockComponent extends BaseLockComponent {
|
|||||||
await super.ngOnInit();
|
await super.ngOnInit();
|
||||||
this.onSuccessfulSubmit = async () => {
|
this.onSuccessfulSubmit = async () => {
|
||||||
const previousUrl = this.routerService.getPreviousUrl();
|
const previousUrl = this.routerService.getPreviousUrl();
|
||||||
if (previousUrl !== "/" && previousUrl.indexOf("lock") === -1) {
|
if (previousUrl && previousUrl !== "/" && previousUrl.indexOf("lock") === -1) {
|
||||||
this.successRoute = previousUrl;
|
this.successRoute = previousUrl;
|
||||||
}
|
}
|
||||||
this.router.navigateByUrl(this.successRoute);
|
this.router.navigateByUrl(this.successRoute);
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ export class LoginComponent extends BaseLoginComponent {
|
|||||||
if (qParams.premium != null) {
|
if (qParams.premium != null) {
|
||||||
this.routerService.setPreviousUrl("/settings/premium");
|
this.routerService.setPreviousUrl("/settings/premium");
|
||||||
} else if (qParams.org != null) {
|
} else if (qParams.org != null) {
|
||||||
const route = this.router.createUrlTree(["settings/create-organization"], {
|
const route = this.router.createUrlTree(["create-organization"], {
|
||||||
queryParams: { plan: qParams.org },
|
queryParams: { plan: qParams.org },
|
||||||
});
|
});
|
||||||
this.routerService.setPreviousUrl(route.toString());
|
this.routerService.setPreviousUrl(route.toString());
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export class RegisterComponent extends BaseRegisterComponent {
|
|||||||
} else if (qParams.org != null) {
|
} else if (qParams.org != null) {
|
||||||
this.showCreateOrgMessage = true;
|
this.showCreateOrgMessage = true;
|
||||||
this.referenceData.flow = qParams.org;
|
this.referenceData.flow = qParams.org;
|
||||||
const route = this.router.createUrlTree(["settings/create-organization"], {
|
const route = this.router.createUrlTree(["create-organization"], {
|
||||||
queryParams: { plan: qParams.org },
|
queryParams: { plan: qParams.org },
|
||||||
});
|
});
|
||||||
this.routerService.setPreviousUrl(route.toString());
|
this.routerService.setPreviousUrl(route.toString());
|
||||||
|
|||||||
@@ -122,17 +122,20 @@ export abstract class BaseEventsComponent {
|
|||||||
const userId = r.actingUserId == null ? r.userId : r.actingUserId;
|
const userId = r.actingUserId == null ? r.userId : r.actingUserId;
|
||||||
const eventInfo = await this.eventService.getEventInfo(r);
|
const eventInfo = await this.eventService.getEventInfo(r);
|
||||||
const user = this.getUserName(r, userId);
|
const user = this.getUserName(r, userId);
|
||||||
|
const userName = user != null ? user.name : this.i18nService.t("unknown");
|
||||||
|
|
||||||
return new EventView({
|
return new EventView({
|
||||||
message: eventInfo.message,
|
message: eventInfo.message,
|
||||||
humanReadableMessage: eventInfo.humanReadableMessage,
|
humanReadableMessage: eventInfo.humanReadableMessage,
|
||||||
appIcon: eventInfo.appIcon,
|
appIcon: eventInfo.appIcon,
|
||||||
appName: eventInfo.appName,
|
appName: eventInfo.appName,
|
||||||
userId: userId,
|
userId: userId,
|
||||||
userName: user != null ? user.name : this.i18nService.t("unknown"),
|
userName: r.installationId != null ? `Installation: ${r.installationId}` : userName,
|
||||||
userEmail: user != null ? user.email : "",
|
userEmail: user != null ? user.email : "",
|
||||||
date: r.date,
|
date: r.date,
|
||||||
ip: r.ipAddress,
|
ip: r.ipAddress,
|
||||||
type: r.type,
|
type: r.type,
|
||||||
|
installationId: r.installationId,
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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="/settings/create-organization">
|
<a bit-menu-item 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
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<button
|
<button
|
||||||
[bitMenuTriggerFor]="accountMenu"
|
[bitMenuTriggerFor]="accountMenu"
|
||||||
class="tw-border-0 tw-bg-transparent tw-text-contrast tw-opacity-70 hover:tw-opacity-90"
|
class="tw-border-0 tw-bg-transparent tw-text-alt2 tw-opacity-70 hover:tw-opacity-90"
|
||||||
>
|
>
|
||||||
<i class="bwi bwi-user-circle bwi-lg" aria-hidden="true"></i>
|
<i class="bwi bwi-user-circle bwi-lg" aria-hidden="true"></i>
|
||||||
<i class="bwi bwi-caret-down bwi-sm" aria-hidden="true"></i>
|
<i class="bwi bwi-caret-down bwi-sm" aria-hidden="true"></i>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { Component, OnInit } from "@angular/core";
|
import { Component, NgZone, OnInit } from "@angular/core";
|
||||||
|
|
||||||
|
import { BroadcasterService } from "jslib-common/abstractions/broadcaster.service";
|
||||||
import { I18nService } from "jslib-common/abstractions/i18n.service";
|
import { I18nService } from "jslib-common/abstractions/i18n.service";
|
||||||
import { MessagingService } from "jslib-common/abstractions/messaging.service";
|
import { MessagingService } from "jslib-common/abstractions/messaging.service";
|
||||||
import { OrganizationService } from "jslib-common/abstractions/organization.service";
|
import { OrganizationService } from "jslib-common/abstractions/organization.service";
|
||||||
@@ -31,7 +32,9 @@ export class NavbarComponent implements OnInit {
|
|||||||
private providerService: ProviderService,
|
private providerService: ProviderService,
|
||||||
private syncService: SyncService,
|
private syncService: SyncService,
|
||||||
private organizationService: OrganizationService,
|
private organizationService: OrganizationService,
|
||||||
private i18nService: I18nService
|
private i18nService: I18nService,
|
||||||
|
private broadcasterService: BroadcasterService,
|
||||||
|
private ngZone: NgZone
|
||||||
) {
|
) {
|
||||||
this.selfHosted = this.platformUtilsService.isSelfHost();
|
this.selfHosted = this.platformUtilsService.isSelfHost();
|
||||||
}
|
}
|
||||||
@@ -49,8 +52,24 @@ export class NavbarComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
this.providers = await this.providerService.getAll();
|
this.providers = await this.providerService.getAll();
|
||||||
|
|
||||||
|
this.organizations = await this.buildOrganizations();
|
||||||
|
|
||||||
|
this.broadcasterService.subscribe(this.constructor.name, async (message: any) => {
|
||||||
|
this.ngZone.run(async () => {
|
||||||
|
switch (message.command) {
|
||||||
|
case "organizationCreated":
|
||||||
|
if (this.organizations.length < 1) {
|
||||||
|
this.organizations = await this.buildOrganizations();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async buildOrganizations() {
|
||||||
const allOrgs = await this.organizationService.getAll();
|
const allOrgs = await this.organizationService.getAll();
|
||||||
this.organizations = allOrgs
|
return allOrgs
|
||||||
.filter((org) => OrgNavigationPermissionsService.canAccessAdmin(org))
|
.filter((org) => OrgNavigationPermissionsService.canAccessAdmin(org))
|
||||||
.sort(Utils.getSortFunction(this.i18nService, "name"));
|
.sort(Utils.getSortFunction(this.i18nService, "name"));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -115,7 +115,6 @@ import { EmergencyAccessTakeoverComponent } from "../settings/emergency-access-t
|
|||||||
import { EmergencyAccessViewComponent } from "../settings/emergency-access-view.component";
|
import { EmergencyAccessViewComponent } from "../settings/emergency-access-view.component";
|
||||||
import { EmergencyAccessComponent } from "../settings/emergency-access.component";
|
import { EmergencyAccessComponent } from "../settings/emergency-access.component";
|
||||||
import { EmergencyAddEditComponent } from "../settings/emergency-add-edit.component";
|
import { EmergencyAddEditComponent } from "../settings/emergency-add-edit.component";
|
||||||
import { LinkSsoComponent } from "../settings/link-sso.component";
|
|
||||||
import { OrganizationPlansComponent } from "../settings/organization-plans.component";
|
import { OrganizationPlansComponent } from "../settings/organization-plans.component";
|
||||||
import { PaymentMethodComponent } from "../settings/payment-method.component";
|
import { PaymentMethodComponent } from "../settings/payment-method.component";
|
||||||
import { PaymentComponent } from "../settings/payment.component";
|
import { PaymentComponent } from "../settings/payment.component";
|
||||||
@@ -224,7 +223,6 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
|
|||||||
HintComponent,
|
HintComponent,
|
||||||
ImportComponent,
|
ImportComponent,
|
||||||
InactiveTwoFactorReportComponent,
|
InactiveTwoFactorReportComponent,
|
||||||
LinkSsoComponent,
|
|
||||||
LockComponent,
|
LockComponent,
|
||||||
LoginComponent,
|
LoginComponent,
|
||||||
MasterPasswordPolicyComponent,
|
MasterPasswordPolicyComponent,
|
||||||
@@ -385,7 +383,6 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
|
|||||||
HintComponent,
|
HintComponent,
|
||||||
ImportComponent,
|
ImportComponent,
|
||||||
InactiveTwoFactorReportComponent,
|
InactiveTwoFactorReportComponent,
|
||||||
LinkSsoComponent,
|
|
||||||
LockComponent,
|
LockComponent,
|
||||||
LoginComponent,
|
LoginComponent,
|
||||||
MasterPasswordPolicyComponent,
|
MasterPasswordPolicyComponent,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
></i>
|
></i>
|
||||||
</button>
|
</button>
|
||||||
<h3 class="filter-title">{{ collectionsGrouping.name | i18n }}</h3>
|
<h3 class="filter-title"> {{ collectionsGrouping.name | i18n }}</h3>
|
||||||
</div>
|
</div>
|
||||||
<ul id="collection-filters" *ngIf="!isCollapsed(collectionsGrouping)" class="filter-options">
|
<ul id="collection-filters" *ngIf="!isCollapsed(collectionsGrouping)" class="filter-options">
|
||||||
<ng-template #recursiveCollections let-collections>
|
<ng-template #recursiveCollections let-collections>
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
class="bwi bwi-collection bwi-fw"
|
class="bwi bwi-collection bwi-fw"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
></i
|
></i
|
||||||
>{{ c.node.name }}
|
> {{ c.node.name }}
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
<ul
|
<ul
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<ng-container *ngIf="!hide && !activeFilter.selectedOrganizationId">
|
<ng-container *ngIf="!hide">
|
||||||
<div class="filter-heading">
|
<div class="filter-heading">
|
||||||
<button
|
<button
|
||||||
class="toggle-button"
|
class="toggle-button"
|
||||||
@@ -16,9 +16,7 @@
|
|||||||
}"
|
}"
|
||||||
></i>
|
></i>
|
||||||
</button>
|
</button>
|
||||||
<h3 class="filter-title">
|
<h3 class="filter-title"> {{ "folders" | i18n }}</h3>
|
||||||
{{ "folders" | i18n }}
|
|
||||||
</h3>
|
|
||||||
<button
|
<button
|
||||||
class="text-muted ml-auto add-button"
|
class="text-muted ml-auto add-button"
|
||||||
(click)="addFolder()"
|
(click)="addFolder()"
|
||||||
@@ -56,7 +54,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<button class="filter-button" (click)="applyFilter(f.node)">
|
<button class="filter-button" (click)="applyFilter(f.node)">
|
||||||
<i *ngIf="f.children.length === 0" class="bwi bwi-fw bwi-folder" aria-hidden="true"></i
|
<i *ngIf="f.children.length === 0" class="bwi bwi-fw bwi-folder" aria-hidden="true"></i
|
||||||
>{{ f.node.name }}
|
> {{ f.node.name }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class="edit-button"
|
class="edit-button"
|
||||||
|
|||||||
@@ -12,9 +12,9 @@
|
|||||||
</li>
|
</li>
|
||||||
<li class="filter-option">
|
<li class="filter-option">
|
||||||
<span class="filter-buttons">
|
<span class="filter-buttons">
|
||||||
<a href="#" routerLink="/settings/create-organization" class="filter-button">
|
<a href="#" routerLink="/create-organization" class="filter-button">
|
||||||
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
||||||
{{ "newOrganization" | i18n }}
|
{{ "newOrganization" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
@@ -45,14 +45,6 @@
|
|||||||
>
|
>
|
||||||
{{ organizationGrouping.name | i18n }}
|
{{ organizationGrouping.name | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<a
|
|
||||||
href="#"
|
|
||||||
routerLink="/settings/create-organization"
|
|
||||||
class="text-muted ml-auto create-organization-link"
|
|
||||||
appA11yTitle="{{ 'addOrganization' | i18n }}"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<ul id="organization-filters" *ngIf="!isCollapsed" class="filter-options">
|
<ul id="organization-filters" *ngIf="!isCollapsed" class="filter-options">
|
||||||
<li
|
<li
|
||||||
@@ -75,6 +67,14 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="filter-option">
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<a href="#" routerLink="/create-organization" class="filter-button">
|
||||||
|
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
||||||
|
{{ "newOrganization" | i18n }}
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container *ngSwitchCase="'singleOrganizationAndPersonalOwnershipPolicies'">
|
<ng-container *ngSwitchCase="'singleOrganizationAndPersonalOwnershipPolicies'">
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container *ngSwitchCase="'organizationMember'">
|
<ng-container *ngSwitchDefault>
|
||||||
<div class="filter-heading">
|
<div class="filter-heading">
|
||||||
<button
|
<button
|
||||||
class="toggle-button"
|
class="toggle-button"
|
||||||
@@ -110,14 +110,6 @@
|
|||||||
>
|
>
|
||||||
{{ organizationGrouping.name | i18n }}
|
{{ organizationGrouping.name | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<a
|
|
||||||
href="#"
|
|
||||||
routerLink="/settings/create-organization"
|
|
||||||
class="text-muted ml-auto create-organization-link"
|
|
||||||
appA11yTitle="{{ 'addOrganization' | i18n }}"
|
|
||||||
>
|
|
||||||
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<ul id="organization-filters" *ngIf="!isCollapsed" class="filter-options">
|
<ul id="organization-filters" *ngIf="!isCollapsed" class="filter-options">
|
||||||
<li class="filter-option" [ngClass]="{ active: activeFilter.myVaultOnly }">
|
<li class="filter-option" [ngClass]="{ active: activeFilter.myVaultOnly }">
|
||||||
@@ -148,6 +140,14 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="filter-option" *ngIf="!(displayMode === 'singleOrganizationPolicy')">
|
||||||
|
<span class="filter-buttons">
|
||||||
|
<a href="#" routerLink="/create-organization" class="filter-button">
|
||||||
|
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
||||||
|
{{ "newOrganization" | i18n }}
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ export class OrganizationOptionsComponent {
|
|||||||
this.platformUtilsService.showToast("success", null, "Unlinked SSO");
|
this.platformUtilsService.showToast("success", null, "Unlinked SSO");
|
||||||
await this.load();
|
await this.load();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
this.platformUtilsService.showToast("error", this.i18nService.t("errorOccurred"), e.message);
|
||||||
this.logService.error(e);
|
this.logService.error(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -106,6 +107,7 @@ export class OrganizationOptionsComponent {
|
|||||||
this.platformUtilsService.showToast("success", null, this.i18nService.t("leftOrganization"));
|
this.platformUtilsService.showToast("success", null, this.i18nService.t("leftOrganization"));
|
||||||
await this.load();
|
await this.load();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
this.platformUtilsService.showToast("error", this.i18nService.t("errorOccurred"), e.message);
|
||||||
this.logService.error(e);
|
this.logService.error(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -173,6 +175,7 @@ export class OrganizationOptionsComponent {
|
|||||||
this.platformUtilsService.showToast("success", null, this.i18nService.t(toastStringRef));
|
this.platformUtilsService.showToast("success", null, this.i18nService.t(toastStringRef));
|
||||||
await this.load();
|
await this.load();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
this.platformUtilsService.showToast("error", this.i18nService.t("errorOccurred"), e.message);
|
||||||
this.logService.error(e);
|
this.logService.error(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,9 +15,7 @@
|
|||||||
}"
|
}"
|
||||||
></i>
|
></i>
|
||||||
</button>
|
</button>
|
||||||
<h3>
|
<h3> {{ "types" | i18n }}</h3>
|
||||||
{{ "types" | i18n }}
|
|
||||||
</h3>
|
|
||||||
</div>
|
</div>
|
||||||
<ul id="type-filters" *ngIf="!isCollapsed" class="filter-options">
|
<ul id="type-filters" *ngIf="!isCollapsed" class="filter-options">
|
||||||
<li
|
<li
|
||||||
@@ -26,14 +24,14 @@
|
|||||||
>
|
>
|
||||||
<span class="filter-buttons">
|
<span class="filter-buttons">
|
||||||
<button class="filter-button" (click)="applyFilter(cipherTypeEnum.Login)">
|
<button class="filter-button" (click)="applyFilter(cipherTypeEnum.Login)">
|
||||||
<i class="bwi bwi-fw bwi-globe" aria-hidden="true"></i>{{ "typeLogin" | i18n }}
|
<i class="bwi bwi-fw bwi-globe" aria-hidden="true"></i> {{ "typeLogin" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="filter-option" [ngClass]="{ active: activeFilter.cipherType === cipherTypeEnum.Card }">
|
<li class="filter-option" [ngClass]="{ active: activeFilter.cipherType === cipherTypeEnum.Card }">
|
||||||
<span class="filter-buttons">
|
<span class="filter-buttons">
|
||||||
<button class="filter-button" (click)="applyFilter(cipherTypeEnum.Card)">
|
<button class="filter-button" (click)="applyFilter(cipherTypeEnum.Card)">
|
||||||
<i class="bwi bwi-fw bwi-credit-card" aria-hidden="true"></i>{{ "typeCard" | i18n }}
|
<i class="bwi bwi-fw bwi-credit-card" aria-hidden="true"></i> {{ "typeCard" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
@@ -43,7 +41,7 @@
|
|||||||
>
|
>
|
||||||
<span class="filter-buttons">
|
<span class="filter-buttons">
|
||||||
<button class="filter-button" (click)="applyFilter(cipherTypeEnum.Identity)">
|
<button class="filter-button" (click)="applyFilter(cipherTypeEnum.Identity)">
|
||||||
<i class="bwi bwi-fw bwi-id-card" aria-hidden="true"></i>{{ "typeIdentity" | i18n }}
|
<i class="bwi bwi-fw bwi-id-card" aria-hidden="true"></i> {{ "typeIdentity" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
@@ -53,7 +51,9 @@
|
|||||||
>
|
>
|
||||||
<span class="filter-buttons">
|
<span class="filter-buttons">
|
||||||
<button class="filter-button" (click)="applyFilter(cipherTypeEnum.SecureNote)">
|
<button class="filter-button" (click)="applyFilter(cipherTypeEnum.SecureNote)">
|
||||||
<i class="bwi bwi-fw bwi-sticky-note" aria-hidden="true"></i>{{ "typeSecureNote" | i18n }}
|
<i class="bwi bwi-fw bwi-sticky-note" aria-hidden="true"></i> {{
|
||||||
|
"typeSecureNote" | i18n
|
||||||
|
}}
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -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,26 +1,22 @@
|
|||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -32,9 +28,9 @@ export class VaultFilterComponent extends BaseVaultFilterComponent {
|
|||||||
// It should be removed as soon as doing so makes sense.
|
// It should be removed as soon as doing so makes sense.
|
||||||
async reloadOrganizations() {
|
async reloadOrganizations() {
|
||||||
this.organizations = await this.vaultFilterService.buildOrganizations();
|
this.organizations = await this.vaultFilterService.buildOrganizations();
|
||||||
}
|
this.activePersonalOwnershipPolicy =
|
||||||
|
await this.vaultFilterService.checkForPersonalOwnershipPolicy();
|
||||||
async initCollections() {
|
this.activeSingleOrganizationPolicy =
|
||||||
return await this.vaultFilterService.buildCollections(this.organization?.id);
|
await this.vaultFilterService.checkForSingleOrganizationPolicy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,22 +1,17 @@
|
|||||||
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";
|
||||||
import { FolderFilterComponent } from "./components/folder-filter.component";
|
import { FolderFilterComponent } from "./components/folder-filter.component";
|
||||||
|
import { LinkSsoComponent } from "./components/link-sso.component";
|
||||||
import { OrganizationFilterComponent } from "./components/organization-filter.component";
|
import { OrganizationFilterComponent } from "./components/organization-filter.component";
|
||||||
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],
|
||||||
@@ -28,21 +23,10 @@ import { VaultFilterComponent } from "./vault-filter.component";
|
|||||||
OrganizationOptionsComponent,
|
OrganizationOptionsComponent,
|
||||||
StatusFilterComponent,
|
StatusFilterComponent,
|
||||||
TypeFilterComponent,
|
TypeFilterComponent,
|
||||||
|
OrganizationVaultFilterComponent,
|
||||||
|
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,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -32,19 +32,26 @@
|
|||||||
</small>
|
</small>
|
||||||
</h1>
|
</h1>
|
||||||
<div class="ml-auto d-flex">
|
<div class="ml-auto d-flex">
|
||||||
<app-vault-bulk-actions [ciphersComponent]="ciphersComponent" [deleted]="deleted">
|
<app-vault-bulk-actions
|
||||||
|
[ciphersComponent]="ciphersComponent"
|
||||||
|
[deleted]="activeFilter.status === 'trash'"
|
||||||
|
>
|
||||||
</app-vault-bulk-actions>
|
</app-vault-bulk-actions>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="btn btn-outline-primary btn-sm"
|
class="btn btn-outline-primary btn-sm"
|
||||||
(click)="addCipher()"
|
(click)="addCipher()"
|
||||||
*ngIf="!deleted"
|
*ngIf="activeFilter.status !== 'trash'"
|
||||||
>
|
>
|
||||||
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>{{ "addItem" | i18n }}
|
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>{{ "addItem" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<app-callout type="warning" *ngIf="deleted" icon="bwi-exclamation-triangle">
|
<app-callout
|
||||||
|
type="warning"
|
||||||
|
*ngIf="activeFilter.status === 'trash'"
|
||||||
|
icon="bwi-exclamation-triangle"
|
||||||
|
>
|
||||||
{{ trashCleanupWarning }}
|
{{ trashCleanupWarning }}
|
||||||
</app-callout>
|
</app-callout>
|
||||||
<app-vault-ciphers
|
<app-vault-ciphers
|
||||||
@@ -95,7 +102,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<p>{{ "premiumUpgradeUnlockFeatures" | i18n }}</p>
|
<p>{{ "premiumUpgradeUnlockFeatures" | i18n }}</p>
|
||||||
<a class="btn btn-block btn-outline-secondary" routerLink="/settings/premium">
|
<a
|
||||||
|
class="btn btn-block btn-outline-secondary"
|
||||||
|
routerLink="/settings/subscription/premium"
|
||||||
|
>
|
||||||
{{ "goPremium" | i18n }}
|
{{ "goPremium" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ export class IndividualVaultComponent implements OnInit, OnDestroy {
|
|||||||
cipherPassesFilter = cipher.type === this.activeFilter.cipherType;
|
cipherPassesFilter = cipher.type === this.activeFilter.cipherType;
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
this.activeFilter.selectedFolderId != null &&
|
this.activeFilter.selectedFolder &&
|
||||||
this.activeFilter.selectedFolderId != "none" &&
|
this.activeFilter.selectedFolderId != "none" &&
|
||||||
cipherPassesFilter
|
cipherPassesFilter
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -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) {
|
||||||
@@ -123,7 +128,11 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
this.route.queryParams.subscribe(async (params) => {
|
this.route.queryParams.subscribe(async (params) => {
|
||||||
if (params.cipherId) {
|
if (params.cipherId) {
|
||||||
if ((await this.cipherService.get(params.cipherId)) != null) {
|
if (
|
||||||
|
// Handle users with implicit collection access since they use the admin endpoint
|
||||||
|
this.organization.canEditAnyCollection ||
|
||||||
|
(await this.cipherService.get(params.cipherId)) != null
|
||||||
|
) {
|
||||||
this.editCipherId(params.cipherId);
|
this.editCipherId(params.cipherId);
|
||||||
} else {
|
} else {
|
||||||
this.platformUtilsService.showToast(
|
this.platformUtilsService.showToast(
|
||||||
@@ -168,7 +177,7 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy {
|
|||||||
cipherPassesFilter = cipher.type === this.activeFilter.cipherType;
|
cipherPassesFilter = cipher.type === this.activeFilter.cipherType;
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
this.activeFilter.selectedFolderId != null &&
|
this.activeFilter.selectedFolder != null &&
|
||||||
this.activeFilter.selectedFolderId != "none" &&
|
this.activeFilter.selectedFolderId != "none" &&
|
||||||
cipherPassesFilter
|
cipherPassesFilter
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from "@angular/core";
|
import { Injectable } from "@angular/core";
|
||||||
import { ActivatedRouteSnapshot, CanActivate, Router } from "@angular/router";
|
import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from "@angular/router";
|
||||||
|
|
||||||
import { I18nService } from "jslib-common/abstractions/i18n.service";
|
import { I18nService } from "jslib-common/abstractions/i18n.service";
|
||||||
import { OrganizationService } from "jslib-common/abstractions/organization.service";
|
import { OrganizationService } from "jslib-common/abstractions/organization.service";
|
||||||
@@ -17,7 +17,7 @@ export class PermissionsGuard implements CanActivate {
|
|||||||
private syncService: SyncService
|
private syncService: SyncService
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
async canActivate(route: ActivatedRouteSnapshot) {
|
async canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
|
||||||
// TODO: We need to fix this issue once and for all.
|
// TODO: We need to fix this issue once and for all.
|
||||||
if ((await this.syncService.getLastSync()) == null) {
|
if ((await this.syncService.getLastSync()) == null) {
|
||||||
await this.syncService.fullSync(false);
|
await this.syncService.fullSync(false);
|
||||||
@@ -39,6 +39,16 @@ export class PermissionsGuard implements CanActivate {
|
|||||||
|
|
||||||
const permissions = route.data == null ? [] : (route.data.permissions as Permissions[]);
|
const permissions = route.data == null ? [] : (route.data.permissions as Permissions[]);
|
||||||
if (permissions != null && !org.hasAnyPermission(permissions)) {
|
if (permissions != null && !org.hasAnyPermission(permissions)) {
|
||||||
|
// Handle linkable ciphers for organizations the user only has view access to
|
||||||
|
// https://bitwarden.atlassian.net/browse/EC-203
|
||||||
|
if (state.root.queryParamMap.has("cipherId")) {
|
||||||
|
return this.router.createUrlTree(["/vault"], {
|
||||||
|
queryParams: {
|
||||||
|
cipherId: state.root.queryParamMap.get("cipherId"),
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
this.platformUtilsService.showToast("error", null, this.i18nService.t("accessDenied"));
|
this.platformUtilsService.showToast("error", null, this.i18nService.t("accessDenied"));
|
||||||
return this.router.createUrlTree(["/"]);
|
return this.router.createUrlTree(["/"]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<app-navbar></app-navbar>
|
||||||
<div class="org-nav" *ngIf="organization">
|
<div class="org-nav" *ngIf="organization">
|
||||||
<div class="container d-flex">
|
<div class="container d-flex">
|
||||||
<div class="d-flex flex-column">
|
<div class="d-flex flex-column">
|
||||||
@@ -35,3 +36,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
|
<app-footer></app-footer>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import { CipherView } from "jslib-common/models/view/cipherView";
|
|||||||
import { ExposedPasswordsReportComponent as BaseExposedPasswordsReportComponent } from "../../reports/exposed-passwords-report.component";
|
import { ExposedPasswordsReportComponent as BaseExposedPasswordsReportComponent } from "../../reports/exposed-passwords-report.component";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-exposed-passwords-report",
|
selector: "app-org-exposed-passwords-report",
|
||||||
templateUrl: "../../reports/exposed-passwords-report.component.html",
|
templateUrl: "../../reports/exposed-passwords-report.component.html",
|
||||||
})
|
})
|
||||||
export class ExposedPasswordsReportComponent extends BaseExposedPasswordsReportComponent {
|
export class ExposedPasswordsReportComponent extends BaseExposedPasswordsReportComponent {
|
||||||
@@ -41,12 +41,10 @@ export class ExposedPasswordsReportComponent extends BaseExposedPasswordsReportC
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
const dynamicSuper = Object.getPrototypeOf(this.constructor.prototype);
|
|
||||||
this.route.parent.parent.params.subscribe(async (params) => {
|
this.route.parent.parent.params.subscribe(async (params) => {
|
||||||
this.organization = await this.organizationService.get(params.organizationId);
|
this.organization = await this.organizationService.get(params.organizationId);
|
||||||
this.manageableCiphers = await this.cipherService.getAll();
|
this.manageableCiphers = await this.cipherService.getAll();
|
||||||
// TODO: We should do something about this, calling super in an async function is bad
|
await this.checkAccess();
|
||||||
dynamicSuper.ngOnInit();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -155,6 +155,11 @@ const routes: Routes = [
|
|||||||
.IndividualVaultModule,
|
.IndividualVaultModule,
|
||||||
},
|
},
|
||||||
{ path: "sends", component: SendComponent, data: { title: "Send" } },
|
{ path: "sends", component: SendComponent, data: { title: "Send" } },
|
||||||
|
{
|
||||||
|
path: "create-organization",
|
||||||
|
component: CreateOrganizationComponent,
|
||||||
|
data: { titleId: "newOrganization" },
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "settings",
|
path: "settings",
|
||||||
component: SettingsComponent,
|
component: SettingsComponent,
|
||||||
@@ -181,11 +186,6 @@ const routes: Routes = [
|
|||||||
loadChildren: async () =>
|
loadChildren: async () =>
|
||||||
(await import("./settings/subscription-routing.module")).SubscriptionRoutingModule,
|
(await import("./settings/subscription-routing.module")).SubscriptionRoutingModule,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: "create-organization",
|
|
||||||
component: CreateOrganizationComponent,
|
|
||||||
data: { titleId: "newOrganization" },
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: "emergency-access",
|
path: "emergency-access",
|
||||||
children: [
|
children: [
|
||||||
@@ -229,6 +229,8 @@ const routes: Routes = [
|
|||||||
(await import("./reports/reports-routing.module")).ReportsRoutingModule,
|
(await import("./reports/reports-routing.module")).ReportsRoutingModule,
|
||||||
},
|
},
|
||||||
{ path: "setup/families-for-enterprise", component: FamiliesForEnterpriseSetupComponent },
|
{ path: "setup/families-for-enterprise", component: FamiliesForEnterpriseSetupComponent },
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "organizations",
|
path: "organizations",
|
||||||
loadChildren: () =>
|
loadChildren: () =>
|
||||||
@@ -236,8 +238,6 @@ const routes: Routes = [
|
|||||||
(m) => m.OrganizationsRoutingModule
|
(m) => m.OrganizationsRoutingModule
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
],
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
|||||||
@@ -307,6 +307,9 @@ export class EventService {
|
|||||||
case EventType.Organization_DisabledKeyConnector:
|
case EventType.Organization_DisabledKeyConnector:
|
||||||
msg = humanReadableMsg = this.i18nService.t("disabledKeyConnector");
|
msg = humanReadableMsg = this.i18nService.t("disabledKeyConnector");
|
||||||
break;
|
break;
|
||||||
|
case EventType.Organization_SponsorshipsSynced:
|
||||||
|
msg = humanReadableMsg = this.i18nService.t("sponsorshipsSynced");
|
||||||
|
break;
|
||||||
// Policies
|
// Policies
|
||||||
case EventType.Policy_Updated: {
|
case EventType.Policy_Updated: {
|
||||||
msg = this.i18nService.t("modifiedPolicyId", this.formatPolicyId(ev));
|
msg = this.i18nService.t("modifiedPolicyId", this.formatPolicyId(ev));
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ export class ChangePasswordComponent extends BaseChangePasswordComponent {
|
|||||||
if (await this.keyConnectorService.getUsesKeyConnector()) {
|
if (await this.keyConnectorService.getUsesKeyConnector()) {
|
||||||
this.router.navigate(["/settings/security/two-factor"]);
|
this.router.navigate(["/settings/security/two-factor"]);
|
||||||
}
|
}
|
||||||
|
await super.ngOnInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
async rotateEncKeyClicked() {
|
async rotateEncKeyClicked() {
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
|
<div class="container page-content">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>{{ "newOrganization" | i18n }}</h1>
|
<h1>{{ "newOrganization" | i18n }}</h1>
|
||||||
</div>
|
</div>
|
||||||
<p>{{ "newOrganizationDesc" | i18n }}</p>
|
<p>{{ "newOrganizationDesc" | i18n }}</p>
|
||||||
<app-organization-plans></app-organization-plans>
|
<app-organization-plans></app-organization-plans>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { ApiService } from "jslib-common/abstractions/api.service";
|
|||||||
import { CryptoService } from "jslib-common/abstractions/crypto.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 { MessagingService } from "jslib-common/abstractions/messaging.service";
|
||||||
import { OrganizationService } from "jslib-common/abstractions/organization.service";
|
import { OrganizationService } from "jslib-common/abstractions/organization.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";
|
||||||
@@ -68,7 +69,8 @@ export class OrganizationPlansComponent implements OnInit {
|
|||||||
private syncService: SyncService,
|
private syncService: SyncService,
|
||||||
private policyService: PolicyService,
|
private policyService: PolicyService,
|
||||||
private organizationService: OrganizationService,
|
private organizationService: OrganizationService,
|
||||||
private logService: LogService
|
private logService: LogService,
|
||||||
|
private messagingService: MessagingService
|
||||||
) {
|
) {
|
||||||
this.selfHosted = platformUtilsService.isSelfHost();
|
this.selfHosted = platformUtilsService.isSelfHost();
|
||||||
}
|
}
|
||||||
@@ -298,6 +300,7 @@ export class OrganizationPlansComponent implements OnInit {
|
|||||||
this.formPromise = doSubmit();
|
this.formPromise = doSubmit();
|
||||||
const organizationId = await this.formPromise;
|
const organizationId = await this.formPromise;
|
||||||
this.onSuccess.emit({ organizationId: organizationId });
|
this.onSuccess.emit({ organizationId: organizationId });
|
||||||
|
this.messagingService.send("organizationCreated", organizationId);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.logService.error(e);
|
this.logService.error(e);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,11 @@ export class SettingsComponent implements OnInit, OnDestroy {
|
|||||||
this.premium = await this.tokenService.getPremium();
|
this.premium = await this.tokenService.getPremium();
|
||||||
this.hasFamilySponsorshipAvailable = await this.organizationService.canManageSponsorships();
|
this.hasFamilySponsorshipAvailable = await this.organizationService.canManageSponsorships();
|
||||||
const hasPremiumFromOrg = await this.stateService.getCanAccessPremium();
|
const hasPremiumFromOrg = await this.stateService.getCanAccessPremium();
|
||||||
const billing = await this.apiService.getUserBillingHistory();
|
let billing = null;
|
||||||
this.hideSubscription = !this.premium && hasPremiumFromOrg && billing.hasNoHistory;
|
if (!this.selfHosted) {
|
||||||
|
billing = await this.apiService.getUserBillingHistory();
|
||||||
|
}
|
||||||
|
this.hideSubscription =
|
||||||
|
!this.premium && hasPremiumFromOrg && (this.selfHosted || billing?.hasNoHistory);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
<td class="table-action-right">
|
<td class="table-action-right">
|
||||||
<div class="dropdown" appListDropdown>
|
<div class="dropdown" appListDropdown>
|
||||||
<button
|
<button
|
||||||
|
*ngIf="!sponsoringOrg.familySponsorshipToDelete"
|
||||||
class="btn btn-outline-secondary dropdown-toggle"
|
class="btn btn-outline-secondary dropdown-toggle"
|
||||||
type="button"
|
type="button"
|
||||||
id="dropdownMenuButton"
|
id="dropdownMenuButton"
|
||||||
@@ -21,7 +22,7 @@
|
|||||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
||||||
<button
|
<button
|
||||||
#resendEmailBtn
|
#resendEmailBtn
|
||||||
*ngIf="!isSelfHosted"
|
*ngIf="!isSelfHosted && !sponsoringOrg.familySponsorshipValidUntil"
|
||||||
[appApiAction]="resendEmailPromise"
|
[appApiAction]="resendEmailPromise"
|
||||||
class="dropdown-item btn-submit"
|
class="dropdown-item btn-submit"
|
||||||
[disabled]="resendEmailBtn.loading"
|
[disabled]="resendEmailBtn.loading"
|
||||||
|
|||||||
@@ -73,11 +73,15 @@ export class TaxInfoComponent {
|
|||||||
this.logService.error(e);
|
this.logService.error(e);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
try {
|
||||||
const taxInfo = await this.apiService.getTaxInfo();
|
const taxInfo = await this.apiService.getTaxInfo();
|
||||||
if (taxInfo) {
|
if (taxInfo) {
|
||||||
this.taxInfo.postalCode = taxInfo.postalCode;
|
this.taxInfo.postalCode = taxInfo.postalCode;
|
||||||
this.taxInfo.country = taxInfo.country || "US";
|
this.taxInfo.country = taxInfo.country || "US";
|
||||||
}
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.logService.error(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.pristine = Object.assign({}, this.taxInfo);
|
this.pristine = Object.assign({}, this.taxInfo);
|
||||||
// If not the default (US) then trigger onCountryChanged
|
// If not the default (US) then trigger onCountryChanged
|
||||||
@@ -86,10 +90,17 @@ export class TaxInfoComponent {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
try {
|
||||||
const taxRates = await this.apiService.getTaxRates();
|
const taxRates = await this.apiService.getTaxRates();
|
||||||
|
if (taxRates) {
|
||||||
this.taxRates = taxRates.data;
|
this.taxRates = taxRates.data;
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.logService.error(e);
|
||||||
|
} finally {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
get taxRate() {
|
get taxRate() {
|
||||||
if (this.taxRates != null) {
|
if (this.taxRates != null) {
|
||||||
|
|||||||
@@ -295,16 +295,6 @@
|
|||||||
(blur)="saveUsernameOptions()"
|
(blur)="saveUsernameOptions()"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-4">
|
|
||||||
<label for="simplelogin-hostname">{{ "hostname" | i18n }}</label>
|
|
||||||
<input
|
|
||||||
id="simplelogin-hostname"
|
|
||||||
class="form-control"
|
|
||||||
type="text"
|
|
||||||
[(ngModel)]="usernameOptions.forwardedSimpleLoginHostname"
|
|
||||||
(blur)="saveUsernameOptions()"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row" *ngIf="usernameOptions.forwardedService === 'anonaddy'">
|
<div class="row" *ngIf="usernameOptions.forwardedService === 'anonaddy'">
|
||||||
<div class="form-group col-4">
|
<div class="form-group col-4">
|
||||||
|
|||||||
@@ -40,12 +40,14 @@ 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()) {
|
||||||
|
// Cannot use Firefox Relay on self hosted web vaults due to CORS issues with Firefox Relay API
|
||||||
this.forwardOptions.splice(
|
this.forwardOptions.splice(
|
||||||
this.forwardOptions.findIndex((o) => o.value === "firefoxrelay"),
|
this.forwardOptions.findIndex((o) => o.value === "firefoxrelay"),
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async history() {
|
async history() {
|
||||||
await this.modalService.openViewRef(PasswordGeneratorHistoryComponent, this.historyModalRef);
|
await this.modalService.openViewRef(PasswordGeneratorHistoryComponent, this.historyModalRef);
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<a
|
<a
|
||||||
href="#"
|
href="#"
|
||||||
routerLink="/settings/create-organization"
|
routerLink="/create-organization"
|
||||||
class="btn btn-primary"
|
class="btn btn-primary"
|
||||||
*ngIf="!organizations || !organizations.length"
|
*ngIf="!organizations || !organizations.length"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -4669,13 +4669,13 @@
|
|||||||
"message": "Email Sent"
|
"message": "Email Sent"
|
||||||
},
|
},
|
||||||
"revokeSponsorshipConfirmation": {
|
"revokeSponsorshipConfirmation": {
|
||||||
"message": "After removing this account, the Families organization owner will be responsible for this subscription and related invoices. Are you sure you want to continue?"
|
"message": "After removing this account, the Families plan sponsorship will expire at the end of the billing period. You will not be able to redeem a new sponsorship offer until the existing one expires. Are you sure you want to continue?"
|
||||||
},
|
},
|
||||||
"removeSponsorshipSuccess": {
|
"removeSponsorshipSuccess": {
|
||||||
"message": "Sponsorship Removed"
|
"message": "Sponsorship Removed"
|
||||||
},
|
},
|
||||||
"ssoKeyConnectorUnavailable": {
|
"ssoKeyConnectorError": {
|
||||||
"message": "Unable to reach the Key Connector, try again later."
|
"message": "Key Connector error: make sure Key Connector is available and working correctly."
|
||||||
},
|
},
|
||||||
"keyConnectorUrl": {
|
"keyConnectorUrl": {
|
||||||
"message": "Key Connector URL"
|
"message": "Key Connector URL"
|
||||||
@@ -5005,7 +5005,7 @@
|
|||||||
"message": "Service"
|
"message": "Service"
|
||||||
},
|
},
|
||||||
"unknownCipher": {
|
"unknownCipher": {
|
||||||
"message": "Unknown Item, you may need to login with another account to access this item."
|
"message": "Unknown Item, you may need to request permission to access this item."
|
||||||
},
|
},
|
||||||
"cannotSponsorSelf": {
|
"cannotSponsorSelf": {
|
||||||
"message": "You cannot redeem for the active account. Enter a different email."
|
"message": "You cannot redeem for the active account. Enter a different email."
|
||||||
@@ -5041,6 +5041,9 @@
|
|||||||
"message": "Last Sync",
|
"message": "Last Sync",
|
||||||
"Description": "Used as a prefix to indicate the last time a sync occured. Example \"Last sync 1968-11-16 00:00:00\""
|
"Description": "Used as a prefix to indicate the last time a sync occured. Example \"Last sync 1968-11-16 00:00:00\""
|
||||||
},
|
},
|
||||||
|
"sponsorshipsSynced": {
|
||||||
|
"message": "Self-hosted sponsorships synced."
|
||||||
|
},
|
||||||
"billingManagedByProvider": {
|
"billingManagedByProvider": {
|
||||||
"message": "Managed by $PROVIDER$",
|
"message": "Managed by $PROVIDER$",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
|
|||||||
@@ -14,14 +14,6 @@
|
|||||||
font-size: $font-size-base;
|
font-size: $font-size-base;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.create-organization-link {
|
|
||||||
&:hover {
|
|
||||||
@include themify($themes) {
|
|
||||||
color: themed("iconHover") !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
button {
|
||||||
@extend .no-btn;
|
@extend .no-btn;
|
||||||
}
|
}
|
||||||
@@ -116,6 +108,7 @@
|
|||||||
}
|
}
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
max-width: 90%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit-button {
|
.edit-button {
|
||||||
|
|||||||
Reference in New Issue
Block a user