Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
BookingMyHrManagement
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
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
Chanachai
BookingMyHrManagement
Commits
ab2ed268
Commit
ab2ed268
authored
Dec 15, 2021
by
DESKTOP-HF0LVOG\myhr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ปุ่ม Delete
parent
9bc28b4f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
admin-equirment.component.html
src/app/pages/admin-equirment/admin-equirment.component.html
+4
-4
admin-equirment.component.ts
src/app/pages/admin-equirment/admin-equirment.component.ts
+5
-4
No files found.
src/app/pages/admin-equirment/admin-equirment.component.html
View file @
ab2ed268
...
...
@@ -41,7 +41,7 @@
<button
class=
"btn btn-sm btn-outline-primary"
(
click
)="
Ropen
(
editroom
,((
pageListRoom-1
)
*
pageSizeListRoom
)+
i
)"
>
แก้ไข
</button>
<button
class=
"btn btn-sm btn-danger"
type=
"button.dispose"
(
click
)="
openDelete
(
deleteRoom
)"
>
ลบ
</button>
(
click
)="
openDelete
(
deleteRoom
Popup
,
item
)"
>
ลบ
</button>
</div>
</div>
</div>
...
...
@@ -335,7 +335,7 @@
</div>
</ng-template>
<ng-template
#
deleteRoom
let-modal
>
<ng-template
#
deleteRoom
Popup
let-modal
>
<div
class=
" col-md-12"
style=
"padding: 0; "
>
<div
class=
"card"
style=
"margin: 0; "
>
<div
class=
" card-header"
>
...
...
@@ -345,8 +345,8 @@
<h4
class=
"text"
>
คุณต้องการลบข้อมูลจริงหรือไม่
</h4>
</div>
<div
class=
" card-footer"
>
<button
class=
" btn btn-fill btn-danger"
(
click
)="
deleteRoomProfile
(
item
)"
>
ยืนยัน
</button>
<button
class=
" btn btn-fill btn-danger"
(
click
)="
modal
.
dismiss
()"
>
ยกเลิก
</button>
<button
class=
" btn btn-fill btn-danger"
type=
"submit"
(
click
)="
deleteRoomProfile
(
)"
>
ยืนยัน
</button>
<button
class=
" btn btn-fill btn-danger"
type=
"cancel"
(
click
)="
modal
.
dismiss
()"
>
ยกเลิก
</button>
</div>
</div>
</div>
...
...
src/app/pages/admin-equirment/admin-equirment.component.ts
View file @
ab2ed268
...
...
@@ -277,14 +277,15 @@ export class AdminEquirmentComponent implements OnInit {
this
.
ngOnInit
();
}
deleteRoomProfile
(
item
:
Room
)
{
this
.
roomService
.
deleteRoomProfile
(
ite
m
)
deleteRoomProfile
()
{
this
.
roomService
.
deleteRoomProfile
(
this
.
modelRoo
m
)
this
.
modalService
.
dismissAll
();
this
.
ngOnInit
();
}
openDelete
(
deleteRoomProfile
)
{
this
.
modalService
.
open
(
deleteRoomProfile
,
{
ariaLabelledBy
:
'modal-basic-title'
}).
result
.
then
((
result
)
=>
{
openDelete
(
deleteRoom
,
item
)
{
this
.
modelRoom
=
item
;
this
.
modalService
.
open
(
deleteRoom
,
{
ariaLabelledBy
:
'modal-basic-title'
}).
result
.
then
((
result
)
=>
{
this
.
closeResult
=
`Closed with:
${
result
}
`
;
},
(
reason
)
=>
{
this
.
closeResult
=
`Dismissed
${
this
.
getDismissReason
(
reason
)}
`
;
...
...
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