From 8996129930e791b1b65dd308f2c5c2931a5291d6 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 25 Dec 2019 08:17:57 -0500 Subject: [PATCH] [+] Add description to Artwork --- src/App.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/App.ts b/src/App.ts index 68934bd..4401ab4 100644 --- a/src/App.ts +++ b/src/App.ts @@ -13,15 +13,17 @@ class Artwork rawDate: string; title: string; format: string; + description: string; width: number; height: number; - constructor(date: string, title: string, format: string) + constructor(date: string, title: string, format: string, description: string) { this.rawDate = date; this.title = title; this.format = format; + this.description = description; } get date() @@ -101,7 +103,7 @@ export default class App extends Vue if (a.format == null) a.format = config.artwork.default_format; // Add it - this.artworks.push(new Artwork(a.date, a.title, a.format).loadDimensions()); + this.artworks.push(new Artwork(a.date, a.title, a.format, a.description).loadDimensions()); }); // Sort by date