From 122510699ec153fb77dbb4662a8b7b347b6c523b Mon Sep 17 00:00:00 2001 From: lesion Date: Fri, 20 May 2022 14:38:44 +0200 Subject: [PATCH] allow footerLinks reorder --- components/admin/Theme.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/components/admin/Theme.vue b/components/admin/Theme.vue index 2aa41eb3..0ec1ef20 100644 --- a/components/admin/Theme.vue +++ b/components/admin/Theme.vue @@ -54,25 +54,27 @@ v-btn(color='warning' text @click='reset') {{$t('common.reset')}} v-card v-list.mt-1(two-line subheader) - v-list-item(v-for='link in settings.footerLinks' + v-list-item(v-for='(link, idx) in settings.footerLinks' :key='`${link.label}`' @click='editFooterLink(link)') v-list-item-content v-list-item-title {{link.label}} v-list-item-subtitle {{link.href}} v-list-item-action - v-btn(icon color='error' @click.stop='removeFooterLink(link)') + v-btn.left(v-if='idx !== 0' icon color='warn' @click.stop='moveUpFooterLink(link, idx)') + v-icon(v-text='mdiChevronUp') + v-btn.float-right(icon color='error' @click.stop='removeFooterLink(link)') v-icon(v-text='mdiDeleteForever')