feat: add new standalone components for system and organization management modules
This commit is contained in:
@@ -17,6 +17,7 @@ import { MatButton, MatIconButton } from '@angular/material/button';
|
||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
import { MatCheckbox } from '@angular/material/checkbox';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
import { AlertService } from 'app/core/alert/alert.service';
|
||||
|
||||
/**
|
||||
* Edit Email Configuration Component.
|
||||
@@ -37,6 +38,7 @@ export class EditEmailComponent implements OnInit {
|
||||
private systemService = inject(SystemService);
|
||||
private route = inject(ActivatedRoute);
|
||||
private router = inject(Router);
|
||||
private alertService = inject(AlertService);
|
||||
|
||||
/** Password input field type. */
|
||||
passwordInputType: string;
|
||||
@@ -110,6 +112,12 @@ export class EditEmailComponent implements OnInit {
|
||||
this.systemService
|
||||
.updateExternalConfiguration('SMTP', this.emailConfigurationForm.value)
|
||||
.subscribe((response: any) => {
|
||||
if (response?.rollbackTransaction) {
|
||||
this.alertService.alert({
|
||||
type: 'Success',
|
||||
message: 'Email configuration update has been submitted for approval.'
|
||||
});
|
||||
}
|
||||
this.router.navigate(['../'], { relativeTo: this.route });
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user