diff --git a/src/App.ts b/src/App.ts index ea76ed0..cbcd380 100644 --- a/src/App.ts +++ b/src/App.ts @@ -110,6 +110,14 @@ export default class App extends Vue this.artworks.sort((a, b) => b.date.getTime() - a.date.getTime()); } + /** + * Filter out artworks of selected type + */ + get selectedArtworks() + { + return this.artworks.filter(a => a.type.type == this.selectedType); + } + /** * Update on resize */