firefly-iii/public/v3/js/2686.acfab37b.js
2022-04-12 17:45:54 +02:00

1 line
2.0 KiB
JavaScript

"use strict";(self["webpackChunkfirefly_iii"]=self["webpackChunkfirefly_iii"]||[]).push([[2686],{2686:(e,s,t)=>{t.r(s),t.d(s,{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(e,s,t,w,g,h){const m=(0,r.up)("q-card-section"),b=(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)(b,{bordered:""},{default:(0,r.w5)((()=>[(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r._)("div",o,(0,a.zw)(g.subscription.name),1)])),_:1}),(0,r.Wm)(m,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",title:"Transactions",rows:g.rows,loading:e.loading,onOnRequest:h.onRequest,"rows-number":g.rowsNumber,"rows-per-page":g.rowsPerPage,page:g.page},null,8,["rows","loading","onOnRequest","rows-number","rows-per-page","page"])])])])),_:1})}var g=t(8925),h=t(3684),m=t(3247);const b={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(e){this.page=e.page,this.getSubscription()},getSubscription:function(){let e=new h.Z;e.get(this.id).then((e=>this.parseSubscription(e))),this.loading=!0;const s=new m.Z;this.rows=[],e.transactions(this.id,this.page,this.getCacheKey).then((e=>{let t=s.parseResponse(e);this.rowsPerPage=t.rowsPerPage,this.rowsNumber=t.rowsNumber,this.rows=t.rows,this.loading=!1}))},parseSubscription:function(e){this.subscription={name:e.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)(b,[["render",w]]),k=Z;S()(b,"components",{QPage:_.Z,QCard:q.Z,QCardSection:v.Z})}}]);