frontend: navigate to rooms page on room creation/update failure
This commit is contained in:
parent
400e95203d
commit
0ce5d26acc
@ -164,6 +164,7 @@ export class RoomWizardComponent implements OnInit {
|
|||||||
const errorMessage = `Failed to ${this.editMode ? 'update' : 'create'} room`;
|
const errorMessage = `Failed to ${this.editMode ? 'update' : 'create'} room`;
|
||||||
this.notificationService.showSnackbar(errorMessage);
|
this.notificationService.showSnackbar(errorMessage);
|
||||||
console.error(errorMessage, error);
|
console.error(errorMessage, error);
|
||||||
|
await this.navigationService.navigateTo('rooms', undefined, true);
|
||||||
} finally {
|
} finally {
|
||||||
this.wizardService.resetWizard();
|
this.wizardService.resetWizard();
|
||||||
// Deactivate loading state
|
// Deactivate loading state
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user