-
Notifications
You must be signed in to change notification settings - Fork 2
P0072 | Orginazation details script #429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,6 +50,7 @@ export class OrganizationDetailsComponent extends BaseComponent implements OnIni | |
| } | ||
|
|
||
| ngOnInit(): void { | ||
| this.organizationForm.get('timeZoneName')?.disable(); | ||
| if (this.authToken) { | ||
| this.otpService | ||
| .getOrganizationDetails(this.authToken) | ||
|
|
@@ -134,7 +135,7 @@ export class OrganizationDetailsComponent extends BaseComponent implements OnIni | |
| return; | ||
| } | ||
|
|
||
| const organizationDetails = this.organizationForm.value; | ||
| const organizationDetails = this.organizationForm.getRawValue(); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good change from |
||
| const current = { | ||
| companyName: organizationDetails.companyName ?? '', | ||
| email: organizationDetails.email ?? '', | ||
|
|
@@ -173,21 +174,21 @@ export class OrganizationDetailsComponent extends BaseComponent implements OnIni | |
| next: (res) => { | ||
| this.initialFormValue = { ...current }; | ||
| this.isEditing = false; // ← close edit mode on success | ||
| this.snackBar.open(res?.data?.message ?? 'Information successfully updated', '✕', { | ||
| duration: 3000, | ||
| horizontalPosition: 'center', | ||
| verticalPosition: 'top', | ||
| panelClass: ['success-snackbar'], | ||
| }); | ||
| // this.snackBar.open(res?.data?.message ?? 'Information successfully updated', '✕', { | ||
| // duration: 3000, | ||
| // horizontalPosition: 'center', | ||
| // verticalPosition: 'top', | ||
| // panelClass: ['success-snackbar'], | ||
| // }); | ||
|
Comment on lines
+177
to
+182
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All snackbar notifications have been commented out. Without these notifications, users won't receive any feedback when their organization details are updated successfully or when an error occurs. Consider keeping these notifications or replacing them with an alternative feedback mechanism. |
||
| }, | ||
| error: () => { | ||
| // Stay in edit mode so user can retry | ||
| this.snackBar.open('Something went wrong', '✕', { | ||
| duration: 3000, | ||
| horizontalPosition: 'center', | ||
| verticalPosition: 'top', | ||
| panelClass: ['error-snackbar'], | ||
| }); | ||
| // this.snackBar.open('Something went wrong', '✕', { | ||
| // duration: 3000, | ||
| // horizontalPosition: 'center', | ||
| // verticalPosition: 'top', | ||
| // panelClass: ['error-snackbar'], | ||
| // }); | ||
| }, | ||
| }); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I notice you've removed the
max-width: 2000pxproperty from the container class. Was this intentional? Removing this constraint might cause layout issues on very large screens where content could stretch too wide.