Spaces:
Running
Running
Update flare-ui/src/app/components/user-info/user-info.component.ts
Browse files
flare-ui/src/app/components/user-info/user-info.component.ts
CHANGED
@@ -103,6 +103,11 @@ export class UserInfoComponent {
|
|
103 |
this.currentPassword = '';
|
104 |
this.newPassword = '';
|
105 |
this.confirmPassword = '';
|
|
|
|
|
|
|
|
|
|
|
106 |
} catch (error: any) {
|
107 |
const message = error.error?.detail || 'Failed to change password';
|
108 |
this.snackBar.open(message, 'Close', { duration: 5000 });
|
|
|
103 |
this.currentPassword = '';
|
104 |
this.newPassword = '';
|
105 |
this.confirmPassword = '';
|
106 |
+
|
107 |
+
// Navigate to projects tab after successful password change
|
108 |
+
setTimeout(() => {
|
109 |
+
this.router.navigate(['/projects']);
|
110 |
+
}, 500);
|
111 |
} catch (error: any) {
|
112 |
const message = error.error?.detail || 'Failed to change password';
|
113 |
this.snackBar.open(message, 'Close', { duration: 5000 });
|