Repository URL to install this package:
|
Version:
2.8.0 ▾
|
import{d,V as m,a0 as _,c as s,a as n,w as c,a2 as k,o as a,b as x,e,bv as y,k as b,bw as g,bx as v,a6 as N,g as C}from"./index-1ad4f081-98325998.js";import{u as w}from"./usePageTitle-b23eb992.js";const $=d({__name:"Notifications",setup(B){const r=m(),t=_(r.notifications.getNotifications),i=s(()=>t.response??[]),u=s(()=>t.executed&&i.value.length===0),f=s(()=>t.executed);return w("Notifications"),(V,o)=>{const l=k("p-layout-default");return a(),n(l,{class:"notifications"},{header:c(()=>[x(e(y))]),default:c(()=>[e(f)?(a(),b(N,{key:0},[e(u)?(a(),n(e(g),{key:0})):(a(),n(e(v),{key:1,notifications:e(i),onDelete:o[0]||(o[0]=p=>e(t).refresh()),onUpdate:o[1]||(o[1]=p=>e(t).refresh())},null,8,["notifications"]))],64)):C("",!0)]),_:1})}}});export{$ as default};