mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
add pricing
This commit is contained in:
@@ -75,17 +75,6 @@ function onHideClicked() {
|
||||
|
||||
const activeProject = useActiveProject();
|
||||
|
||||
async function payment() {
|
||||
// const res = await $fetch(`/api/pay/${activeProject.value?._id.toString()}/create`, {
|
||||
// ...signHeaders({ 'content-type': 'application/json' }),
|
||||
// method: 'POST',
|
||||
// body: JSON.stringify({ planId: 1 })
|
||||
// })
|
||||
// console.log(res);
|
||||
const res = await $fetch(`/api/pay/${activeProject.value?._id.toString()}/invoices`, signHeaders())
|
||||
console.log(res);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@@ -93,7 +82,7 @@ async function payment() {
|
||||
<div class="bg-bg overflow-y-auto w-full h-dvh p-6 gap-6 flex flex-col">
|
||||
|
||||
|
||||
<div @click="payment()" v-if="!isAdminHidden"
|
||||
<div @click="onHideClicked()" v-if="!isAdminHidden"
|
||||
class="bg-menu hover:bg-menu/70 cursor-pointer flex gap-2 rounded-lg w-fit px-6 py-4 text-text-sub">
|
||||
<div class="text-text-sub/90"> <i class="far fa-eye"></i> </div>
|
||||
<div> Nascondi dalla barra </div>
|
||||
|
||||
Reference in New Issue
Block a user