mirror of
https://github.com/bitwarden/browser
synced 2025-01-12 10:27:20 +01:00
Display sponsored status for sponsored org subscription (#1312)
* Display sponsored status for sponsored org subscription * Linter fixes
This commit is contained in:
parent
346052922e
commit
f8c943c042
@ -4,7 +4,7 @@ import {
|
|||||||
ViewContainerRef,
|
ViewContainerRef,
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ActivatedRoute,
|
ActivatedRoute,
|
||||||
Router
|
Router
|
||||||
} from '@angular/router';
|
} from '@angular/router';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {
|
import {
|
||||||
Component,
|
Component,
|
||||||
EventEmitter,
|
EventEmitter,
|
||||||
Output,
|
Output,
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
<ng-container *ngIf="subscription">
|
<ng-container *ngIf="subscription">
|
||||||
<dt>{{'status' | i18n}}</dt>
|
<dt>{{'status' | i18n}}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<span class="text-capitalize">{{subscription.status || '-'}}</span>
|
<span class="text-capitalize">{{isSponsoredSubscription ? 'sponsored' : subscription.status || '-'}}</span>
|
||||||
<span class="badge badge-warning"
|
<span class="badge badge-warning"
|
||||||
*ngIf="subscriptionMarkedForCancel">{{'pendingCancellation' |
|
*ngIf="subscriptionMarkedForCancel">{{'pendingCancellation' |
|
||||||
i18n}}</span>
|
i18n}}</span>
|
||||||
|
@ -40,7 +40,7 @@ import { OrganizationPlansComponent } from 'src/app/settings/organization-plans.
|
|||||||
templateUrl: 'families-for-enterprise-setup.component.html',
|
templateUrl: 'families-for-enterprise-setup.component.html',
|
||||||
})
|
})
|
||||||
export class FamiliesForEnterpriseSetupComponent implements OnInit {
|
export class FamiliesForEnterpriseSetupComponent implements OnInit {
|
||||||
@ViewChild(OrganizationPlansComponent, { static: false })
|
@ViewChild(OrganizationPlansComponent, { static: false })
|
||||||
set organizationPlansComponent(value: OrganizationPlansComponent) {
|
set organizationPlansComponent(value: OrganizationPlansComponent) {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return;
|
return;
|
||||||
@ -109,7 +109,7 @@ export class FamiliesForEnterpriseSetupComponent implements OnInit {
|
|||||||
get selectedFamilyOrganizationId() {
|
get selectedFamilyOrganizationId() {
|
||||||
return this._selectedFamilyOrganizationId;
|
return this._selectedFamilyOrganizationId;
|
||||||
}
|
}
|
||||||
|
|
||||||
set selectedFamilyOrganizationId(value: string) {
|
set selectedFamilyOrganizationId(value: string) {
|
||||||
this._selectedFamilyOrganizationId = value;
|
this._selectedFamilyOrganizationId = value;
|
||||||
this.showNewOrganization = value === 'createNew';
|
this.showNewOrganization = value === 'createNew';
|
||||||
|
@ -50,7 +50,7 @@ export class SponsoringOrgRowComponent {
|
|||||||
|
|
||||||
private async doRevokeSponsorship() {
|
private async doRevokeSponsorship() {
|
||||||
const isConfirmed = await this.platformUtilsService.showDialog(
|
const isConfirmed = await this.platformUtilsService.showDialog(
|
||||||
this.i18nService.t('revokeSponsorshipConfirmation'),
|
this.i18nService.t('revokeSponsorshipConfirmation'),
|
||||||
`${this.i18nService.t('remove')} ${this.sponsoringOrg.familySponsorshipFriendlyName}?`,
|
`${this.i18nService.t('remove')} ${this.sponsoringOrg.familySponsorshipFriendlyName}?`,
|
||||||
this.i18nService.t('remove'), this.i18nService.t('cancel'), 'warning');
|
this.i18nService.t('remove'), this.i18nService.t('cancel'), 'warning');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user