diff --git a/frontend/src/app.js b/frontend/src/app.js index 590047067..c2109d5c1 100644 --- a/frontend/src/app.js +++ b/frontend/src/app.js @@ -26,7 +26,7 @@ Vue.use(Vuetify, { theme: { primary: '#FFD600', secondary: '#b0bec5', - accent: '#8c9eff', + accent: '#00B8D4', error: '#E57373', info: '#00B8D4', success: '#00BFA5', diff --git a/frontend/src/app/pages/photos.vue b/frontend/src/app/pages/photos.vue index 6c8fd0a2e..98b35d615 100644 --- a/frontend/src/app/pages/photos.vue +++ b/frontend/src/app/pages/photos.vue @@ -26,15 +26,6 @@ v-show="advandedSearch"> - - - - + + + + delete - + + + + + +
@@ -202,9 +232,8 @@ const order = query['order'] ? query['order'] : 'newest'; const camera = query['camera'] ? parseInt(query['camera']) : 0; const q = query['q'] ? query['q'] : ''; - const cat = query['cat'] ? query['cat'] : ''; const country = query['country'] ? query['country'] : ''; - const view = query['view'] ? query['view'] : 'tile'; + const view = query['view'] === 'list' ? 'list' : 'tiles'; const cameras = [{ID: 0, CameraModel: 'All Cameras'}].concat(this.$config.getValue('cameras')); const countries = [{ LocCountryCode: '', @@ -217,7 +246,7 @@ 'advandedSearch': false, 'results': [], 'query': { - cat: cat, + view: view, country: country, camera: camera, order: order, @@ -233,6 +262,10 @@ {value: 'shop', text: 'Shop'}, {value: 'tourism', text: 'Tourism'}, ], + 'views': [ + {value: 'tiles', text: 'Tiles'}, + {value: 'list', text: 'List'}, + ], 'countries': countries, 'cameras': cameras, 'sorting': [ @@ -241,6 +274,14 @@ {value: 'imported', text: 'Recently imported'}, ], }, + 'listColumns': [ + { text: 'Title', value: 'PhotoTitle' }, + { text: 'Taken At', value: 'TakenAt' }, + { text: 'City', value: 'LocCity' }, + { text: 'Country', value: 'LocCountry' }, + { text: 'Camera', value: 'CameraModel' }, + { text: 'Favorite', value: 'PhotoFavorite' }, + ], 'view': view, 'loadMoreDisabled': true, 'pageSize': 60,