mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 17:02:55 +08:00
2 lines
1.2 KiB
JavaScript
2 lines
1.2 KiB
JavaScript
|
import{d as u,r,o as s,c as t,w as p,g as _,f,b as e,j as m,a as n,_ as h,aj as v,k as y}from"./index-2a6c9271.js";const b={class:"mt-4"},g=e("div",{class:"mt-2"},[e("h2",{class:"h2 mb-4"},"Load Default Setup Data"),e("hr"),e("p",null,"Load analysis, services, profiles, sample types etc")],-1),k={key:1,class:"mt-4"},D=u({__name:"DataLoad",setup(L){const d=m(()=>h(()=>import("./LoadingMessage-72d34fcf.js"),["assets/LoadingMessage-72d34fcf.js","assets/index-2a6c9271.js","assets/index-88806377.css"])),{toastSuccess:l}=v(),a=r(!1),i=c=>{a.value=!0,n.defaults.timeout=1e3*30,n.post("setup/load-default-setup").then(o=>l(o.data.message)).finally(()=>a.value=!1)};return(c,o)=>(s(),t("div",b,[g,a.value?(s(),t("div",k,[_(f(d),{message:"Loading default setup data ..."})])):(s(),t("button",{key:0,type:"button",onClick:p(i,["prevent"]),class:"mt-4 px-2 py-1 border border-sky-800 bg-sky-800 text-white rounded-sm transition-colors duration-500 ease select-none hover:bg-sky-800 focus:outline-none focus:shadow-outline"}," load setup data "))]))}}),x=y(D,[["__file","/home/aurthur/Documents/Development/felicity-lims/webapp/views/admin/data-load/DataLoad.vue"]]);export{x as default};
|