From 0dcc8c3162c250bba9265cbc80b0d241744b36e4 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 25 Dec 2019 17:24:35 -0500 Subject: [PATCH] [+] Add artwork object to onImageClick --- src/App.ts | 2 +- src/App.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App.ts b/src/App.ts index e46c738..a9d9d90 100644 --- a/src/App.ts +++ b/src/App.ts @@ -166,7 +166,7 @@ export default class App extends Vue }) } - onImageClick(index: number) + onImageClick(artwork: Artwork, index: number) { // @ts-ignore this.$refs.ps.show(this.swipeItems(), {index: index}); diff --git a/src/App.vue b/src/App.vue index 2013d93..6251844 100644 --- a/src/App.vue +++ b/src/App.vue @@ -15,7 +15,8 @@ -
+
{{artwork.title}}
{{artwork.rawDate}}