fix(console): app integration without context (#7541)

* fix: app integration without context

* cleanup

---------

Co-authored-by: Silvan <[email protected]>
This commit is contained in:
Max Peintner
2024-03-13 11:27:53 +01:00
committed by GitHub
co-authored by Silvan
parent 266abcb23b
commit 1db10a4286
4 changed files with 18 additions and 7 deletions
@@ -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()"