@@ -56,7 +56,7 @@ const { createAlert } = useAlert()
5656async function deleteSnapshot(close : () => any ) {
5757 await $fetch (" /api/snapshot/delete" , {
5858 method: ' DELETE' ,
59- ... signHeaders ({ ' Content-Type ' : ' application/json ' }),
59+ headers: useComputedHeaders ({ useSnapshotDates: false }). value ,
6060 body: JSON .stringify ({
6161 id: snapshot .value ._id .toString (),
6262 })
@@ -71,11 +71,7 @@ async function generatePDF() {
7171
7272 try {
7373 const res = await $fetch <Blob >(' /api/project/generate_pdf' , {
74- ... signHeaders ({
75- ' x-snapshot-name' : snapshot .value .name ,
76- ' x-from' : snapshot .value .from .toISOString (),
77- ' x-to' : snapshot .value .to .toISOString (),
78- }),
74+ headers: useComputedHeaders ({ useSnapshotDates: false , custom: { ' x-snapshot-name' : snapshot .value .name } }).value ,
7975 responseType: ' blob'
8076 });
8177
@@ -149,8 +145,8 @@ const pricingDrawer = usePricingDrawer();
149145 </div >
150146 </LyxUiButton >
151147
152- <LyxUiButton v-if =" projectList && (projectList.length >= (maxProjects || 1))"
153- type = " outlined " class =" w-full py-1 mt-2 text-[.7rem]" >
148+ <LyxUiButton v-if =" projectList && (projectList.length >= (maxProjects || 1))" type = " outlined "
149+ class =" w-full py-1 mt-2 text-[.7rem]" >
154150 <div class =" flex items-center gap-2 justify-center" >
155151 <div ><i class =" text-lyx-text-darker far fa-lock" ></i ></div >
156152 <div class =" text-lyx-text-darker" > Projects limit reached </div >
0 commit comments