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
@@ -33,6 +33,7 @@ import { FaIconComponent } from '@fortawesome/angular-fontawesome';
import { MatTooltip } from '@angular/material/tooltip';
import { WorkflowDiagramComponent } from './workflow-diagram/workflow-diagram.component';
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
import { AlertService } from 'app/core/alert/alert.service';
export interface JobStep {
stepName: string;
@@ -68,6 +69,7 @@ export class WorkflowJobsComponent implements OnInit {
private systemService = inject(SystemService);
dialog = inject(MatDialog);
private translateService = inject(TranslateService);
private alertService = inject(AlertService);
stepOrderHasChanged = false;
@@ -209,8 +211,14 @@ export class WorkflowJobsComponent implements OnInit {
this.systemService
.putWorkflowJobSteps(this.jobStepName, payload)
.toPromise()
.then((data) => {
.then((data: any) => {
this.stepOrderHasChanged = false;
if (data?.rollbackTransaction) {
this.alertService.alert({
type: 'Success',
message: 'Workflow step order update has been submitted for approval.'
});
}
});
}
}