Skip to content
Snippets Groups Projects
Commit 8b22b455 authored by Ahmad Saladin's avatar Ahmad Saladin
Browse files

Merge branch 'main' into 'staging'

confirm detach kpi

See merge request !41
parents 6ba6b441 3a9d7305
1 merge request!41confirm detach kpi
Pipeline #48994 passed with stage
in 6 seconds
......@@ -223,12 +223,14 @@ export default {
},
detach(id){
//detach kpi ke backend
let emp_ids = {employee_ids: [id]}
HTTP.post(`kpis/${this.kpi_id}/detach`, emp_ids).catch(()=>{
alert("Gagal menghapus KPI dari karyawan")
return
})
this.assignees = this.assignees.filter(x => x.id != id)
if (confirm("Yakin akan menghapus KPI dari Karyawan?")){
let emp_ids = {employee_ids: [id]}
HTTP.post(`kpis/${this.kpi_id}/detach`, emp_ids).catch(()=>{
alert("Gagal menghapus KPI dari karyawan")
return
})
this.assignees = this.assignees.filter(x => x.id != id)
}
},
getBawahan(){
//get bawahan ke backend
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment