From 11c1f35787a5ed59ca9e1f0440e26d38ee524d98 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Sun, 5 Jul 2020 14:53:00 +0200 Subject: [PATCH] Frontend: Disable client-side sorting in list view Signed-off-by: Michael Mayer --- frontend/src/component/photo/list.vue | 13 +++++++------ frontend/src/share/photo/list.vue | 10 +++++----- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/frontend/src/component/photo/list.vue b/frontend/src/component/photo/list.vue index d5ad8a7aa..70038578f 100644 --- a/frontend/src/component/photo/list.vue +++ b/frontend/src/component/photo/list.vue @@ -107,16 +107,17 @@ notFoundMessage: m, 'selected': [], 'listColumns': [ - {text: '', value: '', align: 'center', sortable: false, class: 'p-col-select'}, - {text: this.$gettext('Title'), value: 'Title'}, - {text: this.$gettext('Taken'), class: 'hidden-xs-only', value: 'TakenAt'}, - {text: this.$gettext('Camera'), class: 'hidden-sm-and-down', value: 'CameraModel'}, + {text: '', value: '', align: 'center', class: 'p-col-select', sortable: false}, + {text: this.$gettext('Title'), value: 'Title', sortable: false}, + {text: this.$gettext('Taken'), class: 'hidden-xs-only', value: 'TakenAt', sortable: false}, + {text: this.$gettext('Camera'), class: 'hidden-sm-and-down', value: 'CameraModel', sortable: false}, { text: showName ? this.$gettext('Name') : this.$gettext('Location'), class: 'hidden-xs-only', - value: showName ? 'FileName' : 'LocLabel' + value: showName ? 'FileName' : 'LocLabel', + sortable: false }, - {text: '', value: '', sortable: false, align: 'center'}, + {text: '', value: '', align: 'center', sortable: false}, ], showName: showName, showLocation: this.$config.settings().features.places, diff --git a/frontend/src/share/photo/list.vue b/frontend/src/share/photo/list.vue index cbca2ae88..9b8651260 100644 --- a/frontend/src/share/photo/list.vue +++ b/frontend/src/share/photo/list.vue @@ -90,11 +90,11 @@ notFoundMessage: m, 'selected': [], 'listColumns': [ - {text: '', value: '', align: 'center', sortable: false, class: 'p-col-select'}, - {text: this.$gettext('Title'), value: 'Title'}, - {text: this.$gettext('Taken'), class: 'hidden-xs-only', value: 'TakenAt'}, - {text: this.$gettext('Camera'), class: 'hidden-sm-and-down', value: 'CameraModel'}, - {text: showName ? this.$gettext('Name') : this.$gettext('Location'), class: 'hidden-xs-only', value: showName ? 'FileName' : 'LocLabel'}, + {text: '', value: '', align: 'center', class: 'p-col-select', sortable: false}, + {text: this.$gettext('Title'), value: 'Title', sortable: false}, + {text: this.$gettext('Taken'), class: 'hidden-xs-only', value: 'TakenAt', sortable: false}, + {text: this.$gettext('Camera'), class: 'hidden-sm-and-down', value: 'CameraModel', sortable: false}, + {text: showName ? this.$gettext('Name') : this.$gettext('Location'), class: 'hidden-xs-only', value: showName ? 'FileName' : 'LocLabel', sortable: false}, ], showName: showName, showLocation: this.$config.settings().features.places,