|
|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
import { DialogRef } from "@angular/cdk/dialog";
|
|
|
|
|
import { Component } from "@angular/core";
|
|
|
|
|
import { FormBuilder } from "@angular/forms";
|
|
|
|
|
|
|
|
|
|
@ -18,6 +19,7 @@ export enum UpdateLicenseDialogResult {
|
|
|
|
|
})
|
|
|
|
|
export class UpdateLicenseDialogComponent extends UpdateLicenseComponent {
|
|
|
|
|
constructor(
|
|
|
|
|
private dialogRef: DialogRef,
|
|
|
|
|
apiService: ApiService,
|
|
|
|
|
i18nService: I18nService,
|
|
|
|
|
platformUtilsService: PlatformUtilsService,
|
|
|
|
|
@ -27,11 +29,20 @@ export class UpdateLicenseDialogComponent extends UpdateLicenseComponent {
|
|
|
|
|
super(apiService, i18nService, platformUtilsService, organizationApiService, formBuilder);
|
|
|
|
|
}
|
|
|
|
|
async submitLicense() {
|
|
|
|
|
await this.submit();
|
|
|
|
|
const result = await this.submit();
|
|
|
|
|
if (result === UpdateLicenseDialogResult.Updated) {
|
|
|
|
|
this.dialogRef.close(UpdateLicenseDialogResult.Updated);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
submitLicenseDialog = async () => {
|
|
|
|
|
await this.submitLicense();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
cancel = async () => {
|
|
|
|
|
await this.cancel();
|
|
|
|
|
this.dialogRef.close(UpdateLicenseDialogResult.Cancelled);
|
|
|
|
|
};
|
|
|
|
|
static open(dialogService: DialogService) {
|
|
|
|
|
return dialogService.open<UpdateLicenseDialogResult>(UpdateLicenseDialogComponent);
|
|
|
|
|
}
|
|
|
|
|
|