feat: add new standalone components for system and organization management modules

This commit is contained in:
2026-09-28 12:55:42 +05:30
parent f451672ce7
commit 4ca08f6ee9
32 changed files with 347 additions and 32 deletions
@@ -44,6 +44,7 @@ import { MatDivider } from '@angular/material/divider';
import { MatButton, MatIconButton } from '@angular/material/button';
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
import { AlertService } from 'app/core/alert/alert.service';
/**
* Edit Hook Component.
@@ -83,6 +84,7 @@ export class EditHookComponent implements OnInit {
private translateService = inject(TranslateService);
private snackBar = inject(MatSnackBar);
private cdr = inject(ChangeDetectorRef);
private alertService = inject(AlertService);
@NgModule({
imports: [
@@ -286,6 +288,12 @@ export class EditHookComponent implements OnInit {
}
};
this.systemService.updateHook(this.hookData.id, hook).subscribe((response: any) => {
if (response?.rollbackTransaction) {
this.alertService.alert({
type: 'Success',
message: 'Hook update has been submitted for approval.'
});
}
this.router.navigate(['../'], { relativeTo: this.route });
});
}