Added checks and updated ticket
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
</div>
|
||||
|
||||
<div class="basis-1/2 md:basis-1/4 justify-end gap-5">
|
||||
|
||||
<!-- <button class="btn btn-green btn-sm" @click.prevent="increaseCall()">Call</button> -->
|
||||
|
||||
<router-link :to="{ name: 'customerCreate' }">
|
||||
<button class="btn btn-accent btn-sm">Create Customer</button>
|
||||
</router-link>
|
||||
@@ -198,6 +201,21 @@ export default defineComponent({
|
||||
|
||||
})
|
||||
},
|
||||
increaseCall() {
|
||||
let path = import.meta.env.VITE_BASE_URL + '/stats/calls/add';
|
||||
|
||||
axios({
|
||||
method: "put",
|
||||
url: path,
|
||||
withCredentials: true,
|
||||
headers: authHeader(),
|
||||
})
|
||||
.then((response: any) => {
|
||||
this.number++;
|
||||
|
||||
})
|
||||
},
|
||||
|
||||
getCompany() {
|
||||
let path = import.meta.env.VITE_BASE_URL + '/admin/company/' + import.meta.env.VITE_COMPANY_ID;
|
||||
axios({
|
||||
|
||||
Reference in New Issue
Block a user