mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 15:56:17 +00:00
Update client deletion
Optimized client deletion
This commit is contained in:
@@ -12,7 +12,7 @@ const values = reactive({
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="position-absolute w-100 h-100 top-0 start-0 z-1 rounded-3 d-flex p-2" style="background-color: #00000070;">
|
||||
<div class="position-absolute w-100 h-100 top-0 start-0 z-1 rounded-3 d-flex p-2" style="background-color: #00000070; z-index: 9999">
|
||||
<div class="card m-auto rounded-3" style="width: 700px">
|
||||
<div class="card-header bg-transparent d-flex align-items-center gap-2 border-0 p-4 pb-2">
|
||||
<h4 class="mb-0">
|
||||
|
@@ -64,9 +64,9 @@ const updateProfile = async () => {
|
||||
updatingProfile.value = false
|
||||
})
|
||||
}
|
||||
const deleteSuccess = () => {
|
||||
router.push('/clients')
|
||||
emits("deleteSuccess")
|
||||
const deleteSuccess = async () => {
|
||||
await router.push('/clients')
|
||||
await assignmentStore.getClients()
|
||||
}
|
||||
|
||||
</script>
|
||||
|
@@ -22,6 +22,10 @@ const oidc = computed(() => {
|
||||
)
|
||||
)
|
||||
})
|
||||
|
||||
const deleteSuccess = async () => {
|
||||
await assignmentStore.getClients();
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -62,7 +66,7 @@ const oidc = computed(() => {
|
||||
<div
|
||||
:class="{'hide': !route.params.id}"
|
||||
class="col-sm-8 clientViewerContainer">
|
||||
<RouterView @deleteSuccess="async () => { await assignmentStore.getClients()}"></RouterView>
|
||||
<RouterView></RouterView>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user