From 82952c5ee9a35d28fe7d426771d6a50df6d661bf Mon Sep 17 00:00:00 2001 From: lesion Date: Sat, 5 Aug 2023 23:11:51 +0200 Subject: [PATCH] clone event feature --- assets/style.css | 3 +- components/eventAdmin.vue | 24 +- locales/ca.json | 3 +- locales/de.json | 3 +- locales/en.json | 3 +- locales/es.json | 3 +- locales/eu.json | 3 +- locales/fr.json | 13 +- locales/gl.json | 7 +- locales/it.json | 2 +- locales/nb.json | 13 +- locales/nl.json | 11 +- locales/pl.json | 9 +- locales/pt-BR.json | 11 +- locales/pt.json | 11 +- locales/ru.json | 3 +- locales/sk.json | 3 +- locales/zh.json | 583 +++++++++++++++++++------------------- pages/add/_edit.vue | 11 +- pages/event/_slug.vue | 3 - 20 files changed, 367 insertions(+), 355 deletions(-) diff --git a/assets/style.css b/assets/style.css index d0efa757..33a68e3c 100644 --- a/assets/style.css +++ b/assets/style.css @@ -1,6 +1,7 @@ html, body { scrollbar-width: thin; - overflow: auto !important; + overflow-y: auto !important; + overflow-x: hidden; scrollbar-color: #FF4511 #111; font-family: sans-serif; } diff --git a/components/eventAdmin.vue b/components/eventAdmin.vue index 35477e7d..a513c25c 100644 --- a/components/eventAdmin.vue +++ b/components/eventAdmin.vue @@ -20,6 +20,13 @@ span v-list-item-content v-list-item-title(v-text="$t('common.edit')") + //- Clone + v-list-item(v-if='!event.parentId' :to='`/add/${event.id}?clone=true`') + v-list-item-icon + v-icon(v-text='mdiScanner') + v-list-item-content + v-list-item-title(v-text="$t('common.clone')") + //- Remove v-list-item(v-if='!event.parentId' @click='remove(false)') v-list-item-icon @@ -53,26 +60,13 @@ span v-list-item-content v-list-item-title(v-text="$t('common.remove')") - - //- v-btn(text color='primary' v-if='event.is_visible' @click='toggle(false)') {{$t(`common.${event.parentId?'skip':'hide'}`)}} - //- v-btn(text color='success' v-else @click='toggle(false)') {{$t('common.confirm')}} - //- v-btn(text color='primary' @click='$router.push(`/add/${event.id}`)') {{$t('common.edit')}} - //- v-btn(text color='primary' v-if='!event.parentId' @click='remove(false)') {{$t('common.remove')}} - - //- template(v-if='event.parentId') - //- v-divider - //- span.mr-1 {{$t('event.edit_recurrent')}} - //- v-btn(text color='primary' v-if='event.parent.is_visible' @click='toggle(true)') {{$t('common.pause')}} - //- v-btn(text color='primary' v-else @click='toggle(true)') {{$t('common.start')}} - //- v-btn(text color='primary' @click='$router.push(`/add/${event.parentId}`)') {{$t('common.edit')}} - //- v-btn(text color='primary' @click='remove(true)') {{$t('common.remove')}}