Files
firefly-iii/public/v3/js/1198.cbaca816.js
2023-02-11 14:58:36 +01:00

1 line
2.0 KiB
JavaScript
Vendored

"use strict";(globalThis["webpackChunkfirefly_iii"]=globalThis["webpackChunkfirefly_iii"]||[]).push([[1198],{1198:(s,e,t)=>{t.r(e),t.d(e,{default:()=>k});var r=t(9835),a=t(6970);const i={class:"row q-mx-md"},n={class:"col-12"},o={class:"text-h6"},u={class:"row"},l={class:"col-12 q-mb-xs"},c=(0,r._)("br",null,null,-1),p={class:"row q-mt-sm"},d={class:"col-12"};function w(s,e,t,w,g,h){const b=(0,r.up)("q-card-section"),m=(0,r.up)("q-card"),f=(0,r.up)("LargeTable"),_=(0,r.up)("q-page");return(0,r.wg)(),(0,r.j4)(_,null,{default:(0,r.w5)((()=>[(0,r._)("div",i,[(0,r._)("div",n,[(0,r.Wm)(m,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(b,null,{default:(0,r.w5)((()=>[(0,r._)("div",o,(0,a.zw)(g.subscription.name),1)])),_:1}),(0,r.Wm)(b,null,{default:(0,r.w5)((()=>[(0,r._)("div",u,[(0,r._)("div",l,[(0,r.Uk)(" Name: "+(0,a.zw)(g.subscription.name),1),c])])])),_:1})])),_:1})])]),(0,r._)("div",p,[(0,r._)("div",d,[(0,r.Wm)(f,{ref:"table",loading:s.loading,page:g.page,rows:g.rows,"rows-number":g.rowsNumber,"rows-per-page":g.rowsPerPage,title:"Transactions",onOnRequest:h.onRequest},null,8,["loading","page","rows","rows-number","rows-per-page","onOnRequest"])])])])),_:1})}var g=t(1049),h=t(3684),b=t(3247);const m={name:"Show",data(){return{subscription:{},rows:[],rowsNumber:1,rowsPerPage:10,page:1}},created(){this.id=parseInt(this.$route.params.id),this.getSubscription()},components:{LargeTable:g.Z},methods:{onRequest:function(s){this.page=s.page,this.getSubscription()},getSubscription:function(){let s=new h.Z;s.get(this.id).then((s=>this.parseSubscription(s))),this.loading=!0;const e=new b.Z;this.rows=[],s.transactions(this.id,this.page,this.getCacheKey).then((s=>{let t=e.parseResponse(s);this.rowsPerPage=t.rowsPerPage,this.rowsNumber=t.rowsNumber,this.rows=t.rows,this.loading=!1}))},parseSubscription:function(s){this.subscription={name:s.data.data.attributes.name}}}};var f=t(1639),_=t(9885),q=t(4458),v=t(3190),P=t(9984),S=t.n(P);const Z=(0,f.Z)(m,[["render",w]]),k=Z;S()(m,"components",{QPage:_.Z,QCard:q.Z,QCardSection:v.Z})}}]);