Frontend: Add rtl alignment to sharing view

This commit is contained in:
theresa 2021-05-01 10:53:54 +02:00
parent 120250eba8
commit 9ca0a7d60a

View file

@ -114,17 +114,19 @@ export default {
let showName = this.filter.order === 'name';
const align = !this.$rtl ? 'left' : 'right';
return {
config: this.$config.values,
notFoundMessage: m,
'selected': [],
'listColumns': [
{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: this.$gettext('Title'), align, value: 'Title', sortable: false},
{text: this.$gettext('Taken'), align, class: 'hidden-xs-only', value: 'TakenAt', sortable: false},
{text: this.$gettext('Camera'), align, class: 'hidden-sm-and-down', value: 'CameraModel', sortable: false},
{
text: showName ? this.$gettext('Name') : this.$gettext('Location'),
align,
class: 'hidden-xs-only',
value: showName ? 'FileName' : 'PlaceLabel',
sortable: false