fix: show edit button on new orgs (#1606)

This commit is contained in:
Max Peintner 2021-04-17 13:05:42 +02:00 committed by GitHub
parent 057537cc82
commit 7f8df6719f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,12 +12,12 @@
<ng-container *ngIf="serviceType === FeatureServiceType.MGMT"> <ng-container *ngIf="serviceType === FeatureServiceType.MGMT">
<mat-spinner class="spinner" diameter="20" *ngIf="customerLoading || stripeLoading"></mat-spinner> <mat-spinner class="spinner" diameter="20" *ngIf="customerLoading || stripeLoading"></mat-spinner>
<div class="detail" *ngIf="stripeCustomer"> <div class="detail" *ngIf="stripeCustomer || stripeCustomer == null">
<p class="title">{{'FEATURES.TIER.DETAILS' | translate}} <p class="title">{{'FEATURES.TIER.DETAILS' | translate}}
<a (click)="setCustomer()">{{'ACTIONS.EDIT' | translate}}</a> <a (click)="setCustomer()">{{'ACTIONS.EDIT' | translate}}</a>
</p> </p>
<p>{{stripeCustomer?.contact}}</p> <p>{{stripeCustomer?.contact}}</p>
<p *ngIf="stripeCustomer.company">{{stripeCustomer?.company}}</p> <p *ngIf="stripeCustomer?.company">{{stripeCustomer?.company}}</p>
<p>{{stripeCustomer?.address}}</p> <p>{{stripeCustomer?.address}}</p>
<p *ngIf="stripeCustomer?.postal_code || stripeCustomer?.city || stripeCustomer?.country"> <p *ngIf="stripeCustomer?.postal_code || stripeCustomer?.city || stripeCustomer?.country">
{{stripeCustomer?.postal_code}} {{stripeCustomer?.city}} {{stripeCustomer?.country}} {{stripeCustomer?.postal_code}} {{stripeCustomer?.city}} {{stripeCustomer?.country}}
@ -27,7 +27,7 @@
</p> </p>
</div> </div>
<p class="error" *ngIf="stripeCustomer && !customerValid">{{'FEATURES.TIER.CUSTOMERINVALID' | translate}}</p> <p class="error" *ngIf="(stripeCustomer || stripeCustomer == null) && !customerValid">{{'FEATURES.TIER.CUSTOMERINVALID' | translate}}</p>
<div class="current-tier"> <div class="current-tier">
<a [disabled]="!org.id || !customerValid" mat-raised-button [href]="stripeURL" target="_blank" <a [disabled]="!org.id || !customerValid" mat-raised-button [href]="stripeURL" target="_blank"