firefly-iii/public/v3/js/1730.d161ad4a.js
2022-06-09 20:31:44 +02:00

1 line
2.4 KiB
JavaScript
Vendored

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