Display sponsored status for sponsored org subscription (#1312)

* Display sponsored status for sponsored org subscription

* Linter fixes
This commit is contained in:
Matt Gibson 2021-11-24 08:33:34 -06:00 committed by GitHub
parent 346052922e
commit f8c943c042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@ import {
ViewContainerRef,
} from '@angular/core';
import {
import {
ActivatedRoute,
Router
} from '@angular/router';

View File

@ -1,4 +1,4 @@
import {
import {
Component,
EventEmitter,
Output,

View File

@ -32,7 +32,7 @@
<ng-container *ngIf="subscription">
<dt>{{'status' | i18n}}</dt>
<dd>
<span class="text-capitalize">{{subscription.status || '-'}}</span>
<span class="text-capitalize">{{isSponsoredSubscription ? 'sponsored' : subscription.status || '-'}}</span>
<span class="badge badge-warning"
*ngIf="subscriptionMarkedForCancel">{{'pendingCancellation' |
i18n}}</span>

View File

@ -40,7 +40,7 @@ import { OrganizationPlansComponent } from 'src/app/settings/organization-plans.
templateUrl: 'families-for-enterprise-setup.component.html',
})
export class FamiliesForEnterpriseSetupComponent implements OnInit {
@ViewChild(OrganizationPlansComponent, { static: false })
@ViewChild(OrganizationPlansComponent, { static: false })
set organizationPlansComponent(value: OrganizationPlansComponent) {
if (!value) {
return;
@ -109,7 +109,7 @@ export class FamiliesForEnterpriseSetupComponent implements OnInit {
get selectedFamilyOrganizationId() {
return this._selectedFamilyOrganizationId;
}
set selectedFamilyOrganizationId(value: string) {
this._selectedFamilyOrganizationId = value;
this.showNewOrganization = value === 'createNew';

View File

@ -50,7 +50,7 @@ export class SponsoringOrgRowComponent {
private async doRevokeSponsorship() {
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.i18nService.t('cancel'), 'warning');