- this.confirmDialogService.openConfirmDialog('Deploy application ' + app.name + '?')
- .afterClosed().subscribe((res: boolean) => {
- if (res) {
- this.loadingDialogService.startLoading('Deploying ' + app.name);
- this.appMgrService.deployXapp(this.instanceKey, app.name)
- .pipe(
- finalize(() => this.loadingDialogService.stopLoading())
- )
- .subscribe(
- (response: HttpResponse<Object>) => {
- this.notificationService.success('App deploy succeeded!');
- },
- ((her: HttpErrorResponse) => {
- // the error field should have an ErrorTransport object
- let msg = her.message;
- if (her.error && her.error.message) {
- msg = her.error.message;
- }
- this.notificationService.warn('App deploy failed: ' + msg);
- })
- );
- }
+ if (this.darkMode) {
+ this.panelClass = 'dark-theme';
+ } else {
+ this.panelClass = '';
+ }
+ const dialogRef = this.dialog.open(DeployDialogComponent, {
+ panelClass: this.panelClass,
+ width: '400px',
+ maxHeight: '1000px',
+ position: {
+ top: '10%'
+ },
+ data: {
+ xappName: app.name,
+ instanceKey: this.instanceKey