From 91c66824b84eabb6ce2083e057f37e3d03095901 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Sat, 15 Jun 2019 18:59:36 -0700 Subject: [PATCH] Frontend: Add view change buttons --- frontend/src/component/p-photo-search.vue | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/frontend/src/component/p-photo-search.vue b/frontend/src/component/p-photo-search.vue index 0d91c1fd7..66cf7388a 100644 --- a/frontend/src/component/p-photo-search.vue +++ b/frontend/src/component/p-photo-search.vue @@ -20,6 +20,22 @@ refresh + + view_column + + + + view_list + + + + view_comfy + + + + view_module + + {{ searchExpanded ? 'keyboard_arrow_up' : 'keyboard_arrow_down' }} @@ -120,6 +136,10 @@ this.searchExpanded = false; } }, + setView(name) { + this.settings.view = name; + this.filterChange(); + }, clearQuery() { this.filter.q = ''; this.filterChange();