mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-20 20:08:46 +00:00
fix(console): app integration without context (#7541)
* fix: app integration without context * cleanup --------- Co-authored-by: Silvan <[email protected]>
This commit is contained in:
@@ -132,9 +132,13 @@ export class AppCreateComponent implements OnDestroy {
|
||||
.addProject(project.toObject())
|
||||
.then((resp: AddProjectResponse.AsObject) => {
|
||||
this.error.set('');
|
||||
this.router.navigate(['/projects', resp.id, 'apps', 'integrate'], {
|
||||
queryParams: { framework: this.framework()?.id },
|
||||
});
|
||||
if (this.customFramework()) {
|
||||
this.router.navigate(['/projects', resp.id, 'apps', 'create']);
|
||||
} else if (this.framework()) {
|
||||
this.router.navigate(['/projects', resp.id, 'apps', 'integrate'], {
|
||||
queryParams: { framework: this.framework()?.id },
|
||||
});
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
const { message } = error;
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
<div class="app-integrate-actions">
|
||||
<button
|
||||
mat-raised-button
|
||||
[disabled]="loading"
|
||||
[disabled]="loading || !framework()"
|
||||
class="create-button"
|
||||
color="primary"
|
||||
(click)="createApp()"
|
||||
|
||||
Reference in New Issue
Block a user