Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
PSManagementUI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hasan.bahjat
PSManagementUI
Commits
edffc18a
Commit
edffc18a
authored
Aug 29, 2024
by
hasan khaddour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add edit step info
parent
9a9c19b7
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
281 additions
and
140 deletions
+281
-140
edit-step-modal.component.css
...step-modals/edit-step-modal/edit-step-modal.component.css
+0
-0
edit-step-modal.component.html
...tep-modals/edit-step-modal/edit-step-modal.component.html
+49
-0
edit-step-modal.component.ts
.../step-modals/edit-step-modal/edit-step-modal.component.ts
+61
-0
edit-weight-modal.component.css
...-modals/edit-weight-modal/edit-weight-modal.component.css
+0
-0
edit-weight-modal.component.html
...modals/edit-weight-modal/edit-weight-modal.component.html
+42
-0
edit-weight-modal.component.ts
...p-modals/edit-weight-modal/edit-weight-modal.component.ts
+56
-0
edit-step-modal.component.html
...ents/steps/edit-step-modal/edit-step-modal.component.html
+0
-28
edit-step-modal.component.ts
...onents/steps/edit-step-modal/edit-step-modal.component.ts
+0
-59
step-row-item.component.html
...mponents/steps/step-row-item/step-row-item.component.html
+2
-2
step-row-item.component.ts
...components/steps/step-row-item/step-row-item.component.ts
+11
-1
changeStepInfoRequest.ts
...ts/models/requests/step-requests/changeStepInfoRequest.ts
+8
-0
changeStepWeightRequest.ts
.../models/requests/step-requests/changeStepWeightRequest.ts
+1
-0
step-list.component.html
src/app/projects/pages/step-list/step-list.component.html
+2
-47
step-list.component.ts
src/app/projects/pages/step-list/step-list.component.ts
+37
-0
projects.module.ts
src/app/projects/projects.module.ts
+6
-2
step.service.ts
src/app/projects/services/step.service.ts
+6
-0
sidebar.component.html
src/app/shared/sharedLayout/sidebar/sidebar.component.html
+0
-1
No files found.
src/app/projects/components/steps/edit-step-modal/edit-step-modal.component.css
→
src/app/projects/components/step
-modal
s/edit-step-modal/edit-step-modal.component.css
View file @
edffc18a
File moved
src/app/projects/components/step-modals/edit-step-modal/edit-step-modal.component.html
0 → 100644
View file @
edffc18a
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"btn-close"
(
click
)="
onClose
()"
></button>
<h5
class=
"modal-title text-center"
>
تعديل مرحلة
</h5>
</div>
<div
class=
"modal-body"
>
<form
(
ngSubmit
)="
onSubmit
()"
#
projectForm=
"ngForm"
>
<div
class=
"row"
>
<div
class=
"mb-3 col-4 offset-1"
>
<label
for=
"stepName"
class=
"form-label"
>
اسم المرحلة
</label>
<input
disabled=
"true"
type=
"text"
name=
"stepName"
id=
"stepName"
class=
"form-control"
[(
ngModel
)]="
request
.
stepInfo
.
stepName
"
required
>
</div>
<div
class=
"mb-3 col-4"
>
<label
for=
"start"
class=
"form-label"
>
تاريخ البدء
</label>
<input
type=
"date"
disabled=
"true"
id=
"start"
class=
"form-control"
[(
ngModel
)]="
request
.
stepInfo
.
startDate
"
name=
"start"
required
>
</div>
</div>
<div
class=
"row"
>
<div
class=
"mb-3 col-4 offset-1"
>
<label
for=
"worker"
class=
"form-label"
>
عدد العمال المطلوب
</label>
<input
id=
"worker"
class=
"form-control"
[(
ngModel
)]="
request
.
stepInfo
.
numberOfWorker
"
name=
"worker"
required
>
</div>
<div
class=
"mb-3 col-3"
>
<label
for=
"duration"
class=
"form-label"
>
المدة (أسبوع)
</label>
<input
id=
"duration"
class=
"form-control"
[(
ngModel
)]="
request
.
stepInfo
.
duration
"
name=
"duration"
required
>
</div>
<div
class=
"mb-3 col-8 offset-1"
>
<label
for=
"decription"
class=
"form-label"
>
الوصف
</label>
<textarea
col=
"3"
name=
"decription"
id=
"decription"
class=
"form-control"
[(
ngModel
)]="
request
.
stepInfo
.
description
"
required
>
</textarea>
</div>
</div>
<div
class=
"row"
>
</div>
<div
class=
"row "
>
<button
type=
"submit"
[
disabled
]="
projectForm
.
invalid
"
class=
"col-5 m-4 btn btn-primary"
>
إضافة
</button>
<div
class=
"col-5 m-4 btn btn-secondary"
(
click
)="
onClose
()"
>
إغلاق
</div>
</div>
</form>
</div>
\ No newline at end of file
src/app/projects/components/step-modals/edit-step-modal/edit-step-modal.component.ts
0 → 100644
View file @
edffc18a
import
{
Component
,
Input
}
from
'@angular/core'
;
import
{
Step
}
from
'../../../models/responses/Step'
;
import
{
NgbActiveModal
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
AddProjectStepRequest
}
from
'../../../models/requests/project-requests/AddProjectStepRequest'
;
import
{
ProjectService
}
from
'../../../services/project.service'
;
import
{
ChangeStepInfoRequest
}
from
'../../../models/requests/step-requests/changeStepInfoRequest'
;
import
{
StepInfo
}
from
'../../../models/valueObjects/StepInfo'
;
import
{
StepService
}
from
'../../../services/step.service'
;
@
Component
({
selector
:
'edit-step-modal'
,
templateUrl
:
'./edit-step-modal.component.html'
,
styleUrl
:
'./edit-step-modal.component.css'
})
export
class
EditStepModalComponent
{
@
Input
()
stepInfo
:
StepInfo
@
Input
()
stepId
:
number
request
:
ChangeStepInfoRequest
constructor
(
private
toastr
:
ToastrService
,
public
activeModal
:
NgbActiveModal
,
private
stepService
:
StepService
)
{}
ngOnInit
():
void
{
this
.
request
=
{
stepInfo
:
{
...
this
.
stepInfo
},
stepId
:
this
.
stepId
};
}
onSubmit
():
void
{
// Emit the project data or handle it as needed
console
.
log
(
'Project data submitted:'
,
this
.
request
);
this
.
stepService
.
changeStepInfo
(
this
.
request
)
.
subscribe
({
next
:
(
data
)
=>
{
this
.
activeModal
.
close
(
this
.
stepInfo
);
// Close modal and pass data
},
error
:
(
err
)
=>
this
.
toastr
.
error
(
"لقد حدث خطاء ما"
)
})
}
onClose
():
void
{
this
.
activeModal
.
close
();
}
}
src/app/projects/components/step-modals/edit-weight-modal/edit-weight-modal.component.css
0 → 100644
View file @
edffc18a
src/app/projects/components/step-modals/edit-weight-modal/edit-weight-modal.component.html
0 → 100644
View file @
edffc18a
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"btn-close"
(
click
)="
onClose
()"
></button>
<h5
class=
"modal-title text-center"
>
تعديل ثقل مرحلة
</h5>
</div>
<div
class=
"modal-body"
>
<form
(
ngSubmit
)="
onSubmit
()"
#
projectForm=
"ngForm"
>
<div
class=
"row"
>
<div
class=
"mb-3 col-4 offset-1"
>
<label
for=
"stepName"
class=
"form-label"
>
اسم المرحلة
</label>
<input
disabled=
"true"
type=
"text"
name=
"stepName"
id=
"stepName"
class=
"form-control"
[(
ngModel
)]="
stepInfo
.
stepName
"
>
</div>
<div
class=
"mb-3 col-4"
>
<label
for=
"start"
class=
"form-label"
>
المدة
</label>
<input
disabled=
"true"
id=
"start"
class=
"form-control"
[(
ngModel
)]="
stepInfo
.
duration
"
name=
"start"
>
</div>
</div>
<div
class=
"row"
>
<div
class=
"mb-3 col-4 offset-1"
>
<label
for=
"oweight"
class=
"form-label"
>
الثقل القديم
</label>
<input
disabled=
"true"
id=
"oweight"
class=
"form-control"
[(
ngModel
)]="
weight
"
name=
"oweight"
>
</div>
<div
class=
"mb-3 col-4 "
>
<label
for=
"weight"
class=
"form-label"
>
الثقل الجديد
</label>
<input
id=
"weight"
class=
"form-control"
[(
ngModel
)]="
request
.
weight
"
name=
"weight"
required
>
</div>
</div>
<div
class=
"row"
>
</div>
<div
class=
"row "
>
<button
type=
"submit"
[
disabled
]="
projectForm
.
invalid
"
class=
"col-4 m-4 btn btn-primary"
>
إضافة
</button>
<div
class=
"col-4 m-4 btn btn-secondary"
(
click
)="
onClose
()"
>
إغلاق
</div>
</div>
</form>
</div>
\ No newline at end of file
src/app/projects/components/step-modals/edit-weight-modal/edit-weight-modal.component.ts
0 → 100644
View file @
edffc18a
import
{
Component
,
Input
}
from
'@angular/core'
;
import
{
ChangeStepWeightRequest
}
from
'../../../models/requests/step-requests/changeStepWeightRequest'
;
import
{
NgbActiveModal
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
StepService
}
from
'../../../services/step.service'
;
import
{
StepInfo
}
from
'../../../models/valueObjects/StepInfo'
;
@
Component
({
selector
:
'edit-weight-modal'
,
templateUrl
:
'./edit-weight-modal.component.html'
,
styleUrl
:
'./edit-weight-modal.component.css'
})
export
class
EditWeightModalComponent
{
@
Input
()
weight
:
number
@
Input
()
stepInfo
:
StepInfo
@
Input
()
stepId
:
number
request
:
ChangeStepWeightRequest
constructor
(
private
toastr
:
ToastrService
,
public
activeModal
:
NgbActiveModal
,
private
stepService
:
StepService
)
{}
ngOnInit
():
void
{
this
.
request
=
{
weight
:
this
.
weight
,
stepId
:
this
.
stepId
};
}
onSubmit
():
void
{
// Emit the project data or handle it as needed
console
.
log
(
'Project data submitted:'
,
this
.
request
);
this
.
stepService
.
changeStepWeight
(
this
.
request
)
.
subscribe
({
next
:
(
data
)
=>
{
this
.
activeModal
.
close
(
this
.
request
.
weight
);
// Close modal and pass data
},
error
:
(
err
)
=>
this
.
toastr
.
error
(
"لقد حدث خطاء ما"
)
})
}
onClose
():
void
{
this
.
activeModal
.
close
();
}
}
src/app/projects/components/steps/edit-step-modal/edit-step-modal.component.html
deleted
100644 → 0
View file @
9a9c19b7
<!-- edit-participant-modal.component.html
<div class="modal fade" id="editParticipantModal" tabindex="-1" aria-labelledby="editParticipantModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="editParticipantModalLabel">تعديل معلومات مشاركة </h5>
<button type="button" class=" ml-4 mr-4 btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form [formGroup]="editParticipantForm" (ngSubmit)="onSubmit()">
<div class="mb-3">
<label for="role" class="form-label">صفة المساهمة</label>
<input type="text" id="role" formControlName="role" class="form-control" required>
</div>
<div class="mb-3">
<label for="partialTimeRatio" class="form-label">نسبة التفرغ</label>
<input type="number" id="partialTimeRatio" formControlName="partialTimeRatio" class="form-control" required>
</div>
<button type="submit" class="col-4 offset-2 btn btn-primary" [disabled]="!editParticipantForm.valid">حفظ</button>
<button type="button" class="col-4 offset-2 btn btn-secondary" data-bs-dismiss="modal">إزالة</button>
</form>
</div>
</div>
</div>
</div>
-->
\ No newline at end of file
src/app/projects/components/steps/edit-step-modal/edit-step-modal.component.ts
deleted
100644 → 0
View file @
9a9c19b7
// import { Component, EventEmitter, Input, Output } from '@angular/core';
// import { Step } from '../../../models/responses/Step';
// import { FormGroup, FormBuilder, Validators } from '@angular/forms';
// import { ChangeEmployeeParticipationRequest } from '../../../models/requests/project-requests/ChangeEmployeeParticipationRequest';
// import { ProjectService } from '../../../services/project.service';
// @Component({
// selector: 'edit-step-modal',
// templateUrl: './edit-step-modal.component.html',
// styleUrl: './edit-step-modal.component.css'
// })
// export class EditStepModalComponent {
// @Input() step: Step;
// @Output() stepEdited = new EventEmitter<void>();
// editStepForm: FormGroup;
// constructor(private fb: FormBuilder, private projectService: ProjectService) {
// this.editStepForm = this.fb.group({
// role: ['', Validators.required],
// partialTimeRatio: [0, [Validators.required, Validators.min(0)]],
// });
// }
// ngOnChanges() {
// if (this.step) {
// this.editStepForm.patchValue(this.step);
// }
// }
// onSubmit() {
// if (this.editStepForm.valid) {
// let request : ChangeEmployeeParticipationRequest ={
// role: this.editStepForm.value.role ,
// partialTimeRation: this.editStepForm.value.partialTimeRatio,
// stepId: this.step.employee.id ,
// projectId:this.step.projectId
// }
// debugger;
// this
// .projectService
// .changeParticipation(request)
// .subscribe(() => {
// this.stepEdited.emit();
// this.closeModal();
// });
// }
// }
// closeModal() {
// const modal = document.getElementById('editstepModal');
// if (modal) {
// (modal as any).modal('hide');
// }
// }
// }
src/app/projects/components/steps/step-row-item/step-row-item.component.html
View file @
edffc18a
...
...
@@ -36,8 +36,8 @@
<div
class=
"col-auto"
>
<button
type=
"button"
[
routerLink
]="['/
tracks
/
history
/
step
/',
step
.
id
]"
class=
"btn mr-2 btn-sm btn-primary"
>
استعراض تاريخ متابعتها
</button>
<button
type=
"button"
class=
"btn mr-2 btn-sm btn-secondary"
>
تعديل الثقل
</button>
<button
type=
"button"
class=
"btn mr-2 btn-sm btn-secondary"
>
تعديل المعلومات
</button>
<button
type=
"button"
(
click
)="
onChangeWeight
()"
class=
"btn mr-2 btn-sm btn-secondary"
>
تعديل الثقل
</button>
<button
type=
"button"
(
click
)="
onEdit
()"
class=
"btn mr-2 btn-sm btn-secondary"
>
تعديل المعلومات
</button>
<button
type=
"button"
(
click
)="
onDelete
()"
class=
"btn mr2 btn-sm btn-danger"
>
إزالة
</button>
...
...
src/app/projects/components/steps/step-row-item/step-row-item.component.ts
View file @
edffc18a
...
...
@@ -10,8 +10,18 @@ export class StepRowItemComponent {
@
Input
()
step
:
Step
@
Output
()
delete
=
new
EventEmitter
<
void
>
();
@
Output
()
edit
=
new
EventEmitter
<
Step
>
();
@
Output
()
changeWeight
=
new
EventEmitter
<
Step
>
();
onDelete
()
{
this
.
delete
.
emit
();
}
onChangeWeight
(){
this
.
changeWeight
.
emit
(
this
.
step
);
}
onEdit
(){
this
.
edit
.
emit
(
this
.
step
);
}
}
src/app/projects/models/requests/step-requests/changeStepInfoRequest.ts
0 → 100644
View file @
edffc18a
import
{
StepInfo
}
from
"../../valueObjects/StepInfo"
;
export
class
ChangeStepInfoRequest
{
stepId
:
number
;
stepInfo
:
StepInfo
;
}
src/app/projects/models/requests/step-requests/changeStepWeightRequest.ts
View file @
edffc18a
export
interface
ChangeStepWeightRequest
{
stepId
:
number
weight
:
number
...
...
src/app/projects/pages/step-list/step-list.component.html
View file @
edffc18a
...
...
@@ -17,6 +17,8 @@
*
ngFor=
"let step of steps"
[
step
]="
step
"
(
delete
)="
openModal
('
delete
',
step
)"
(
changeWeight
)="
openChangeWeightModal
(
step
)"
(
edit
)="
openEditModal
(
step
)"
></step-row-item>
<div
*
ngIf=
"steps.length==0"
>
...
...
@@ -37,53 +39,6 @@
</div>
<div
class=
"modal-body"
>
<!-- Edit Form -->
<!-- <div *ngIf="modalMode === 'edit'">
<form (ngSubmit)="saveProject()">
<div class="row">
<div class="mb-3 col-5 offset-1">
<label for="stepName" class="form-label">نوع الكلفة</label>
<input type="text" name="stepName" id="stepName" class="form-control" [(ngModel)]="selectedItem.costType" required>
</div>
<div class="mb-3 col-5">
<label for="expectedSpendingDate" class="form-label">تاريخ الانفاق المتوقع</label>
<input type="date" id="expectedSpendingDate" class="form-control" [(ngModel)]="selectedItem.expectedSpendingDate" name="expectedSpendingDate" required>
</div>
<div class="mb-3 col-4 offset-1">
<label for="local" class="form-label">الشراء المحلي</label>
<input id="local" class="form-control" [(ngModel)]="selectedItem.localPurchase" name="local" required>
</div>
<div class="mb-3 col-4 ">
<label for="completion" class="form-label">الشراء الخارجي </label>
<input id="completion" class="form-control" [(ngModel)]="selectedItem.externalPurchase.ammount" name="completion" required>
</div>
<div class="mb-3 col-2">
<label for="duration" class="form-label">نوغ القطع</label>
<select id="duration" class="form-control select " [(ngModel)]="selectedItem.externalPurchase.currency" name="duration" required>
<option value="USA">USA</option>
<option value="EUR">EUR</option>
</select>
</div>
</div>
<div class="row">
<div class="mb-3 col-10 offset-1 " >
<label for="decription" class="form-label">البيان</label>
<textarea col="3" name="worker" id="decription" class="form-control" [(ngModel)]="selectedItem.description" required>
</textarea>
</div>
</div>
<div class="row">
</div>
<button type="submit" class="btn btn-success">حفظ</button>
</form>
</div> -->
<!-- Delete Confirmation -->
<div
*
ngIf=
"modalMode === 'delete'"
>
<p>
هل أنت متأكد من أنك تريد حذف المرحلة {{ selectedItem.stepInfo.stepName }}?
</p>
...
...
src/app/projects/pages/step-list/step-list.component.ts
View file @
edffc18a
...
...
@@ -8,6 +8,9 @@ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import
{
AddStepModalComponent
}
from
'../../components/modals/add-step-modal/add-step-modal.component'
;
import
{
Modal
}
from
'bootstrap'
;
import
{
RemoveStepModalComponent
}
from
'../../components/steps/remove-step-modal/remove-step-modal.component'
;
import
{
EditStepModalComponent
}
from
'../../components/step-modals/edit-step-modal/edit-step-modal.component'
;
import
{
EditWeightModalComponent
}
from
'../../components/step-modals/edit-weight-modal/edit-weight-modal.component'
;
import
{
ChangeStepInfoRequest
}
from
'../../models/requests/step-requests/changeStepInfoRequest'
;
@
Component
({
selector
:
'step-list'
,
templateUrl
:
'./step-list.component.html'
,
...
...
@@ -60,14 +63,48 @@ export class StepListComponent {
if
(
result
)
{
// Add the new project to the list
this
.
steps
.
push
(
result
);
}
},
(
reason
)
=>
{
});
}
openChangeWeightModal
(
step
:
Step
):
void
{
const
modalRef
=
this
.
modalService
.
open
(
EditWeightModalComponent
);
modalRef
.
componentInstance
.
weight
=
step
.
weight
;
modalRef
.
componentInstance
.
stepInfo
=
step
.
stepInfo
;
modalRef
.
componentInstance
.
stepId
=
step
.
id
;
modalRef
.
result
.
then
((
result
)
=>
{
if
(
result
)
{
// Add the new project to the list
step
.
weight
=
result
.
weight
}
},
(
reason
)
=>
{
});
}
openEditModal
(
step
:
Step
):
void
{
const
modalRef
=
this
.
modalService
.
open
(
EditStepModalComponent
,{
size
:
'lg'
});
modalRef
.
componentInstance
.
stepInfo
=
step
.
stepInfo
;
modalRef
.
componentInstance
.
stepId
=
step
.
id
;
modalRef
.
result
.
then
((
result
)
=>
{
if
(
result
)
{
// Add the new project to the list
step
.
stepInfo
=
{...
result
.
stepInfo
};
}
},
(
reason
)
=>
{
});
}
openModal
(
mode
:
'edit'
|
'delete'
,
item
:
Step
):
void
{
this
.
modalMode
=
mode
;
...
...
src/app/projects/projects.module.ts
View file @
edffc18a
...
...
@@ -5,7 +5,7 @@ import { ProjectListComponent } from './pages/project-list/project-list.componen
import
{
ProjectDetailsComponent
}
from
'./pages/project-details/project-details.component'
;
import
{
FormsModule
,
ReactiveFormsModule
}
from
'@angular/forms'
;
import
{
SharedModule
}
from
'../shared/shared.module'
;
import
{
ProjectRoutingModule
}
from
'./project-routing.module'
;
import
{
ProjectRoutingModule
}
from
'./
routing/
project-routing.module'
;
import
{
StepRowItemComponent
}
from
'./components/steps/step-row-item/step-row-item.component'
;
import
{
ProjectCreateComponent
}
from
'./pages/project-create/project-create.component'
;
import
{
MatCommonModule
,
MatOption
,
MatOptionModule
}
from
'@angular/material/core'
;
...
...
@@ -43,6 +43,8 @@ import { ProjectCompleteModalComponent } from './components/projectModals/projec
import
{
ProjectReplanModalComponent
}
from
'./components/projectModals/project-replan-modal/project-replan-modal.component'
;
import
{
ChangeManagerModalComponent
}
from
'./components/projectModals/change-manager-modal/change-manager-modal.component'
;
import
{
ChangeLeaderModalComponent
}
from
'./components/projectModals/change-leader-modal/change-leader-modal.component'
;
import
{
EditStepModalComponent
}
from
'./components/step-modals/edit-step-modal/edit-step-modal.component'
;
import
{
EditWeightModalComponent
}
from
'./components/step-modals/edit-weight-modal/edit-weight-modal.component'
;
@
NgModule
({
declarations
:
[
...
...
@@ -76,7 +78,9 @@ import { ChangeLeaderModalComponent } from './components/projectModals/change-le
ProjectCompleteModalComponent
,
ProjectReplanModalComponent
,
ChangeManagerModalComponent
,
ChangeLeaderModalComponent
ChangeLeaderModalComponent
,
EditStepModalComponent
,
EditWeightModalComponent
],
providers
:
[
ProjectService
,
...
...
src/app/projects/services/step.service.ts
View file @
edffc18a
...
...
@@ -7,6 +7,7 @@ import { ChangeStepWeightRequest } from '../models/requests/step-requests/change
import
{
GetStepTrackHistoryRequest
}
from
'../models/requests/step-requests/GetStepTrackHistoryRequest'
;
import
{
StepTrack
}
from
'../../tracks/models/responses/steptrack'
;
import
{
UpdateCompletionRatioRequest
}
from
'../models/requests/step-requests/UpdateCompletionRatioRequest'
;
import
{
ChangeStepInfoRequest
}
from
'../models/requests/step-requests/changeStepInfoRequest'
;
@
Injectable
({
providedIn
:
'root'
...
...
@@ -49,6 +50,11 @@ export class StepService {
return
this
.
http
.
put
<
void
>
(
`
${
this
.
config
.
getServerUrl
()}
/Steps/ChangeCompletionRatio/?stepId=
${
request
.
stepId
}
`
,
request
);
}
// this method responsible for change the step Info
public
changeStepInfo
(
request
:
ChangeStepInfoRequest
):
Observable
<
void
>
{
return
this
.
http
.
put
<
void
>
(
`
${
this
.
config
.
getServerUrl
()}
/Steps/UpdateStepInfo/`
,
request
);
}
// this method responsible for delet the step
//
public
deleteSep
(
stepId
:
number
):
Observable
<
void
>
{
...
...
src/app/shared/sharedLayout/sidebar/sidebar.component.html
View file @
edffc18a
...
...
@@ -43,7 +43,6 @@
</a>
</li>
</li>
<!-- End Components Nav -->
<li
class=
"nav-heading"
>
الجهات الطارحة
</li>
<li
class=
"nav-item"
>
<a
[
routerLink
]="['
customers
']"
class=
"nav-link collapsed "
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment