diff --git a/app/src/App.vue b/app/src/App.vue index 232f31ae..f205e207 100644 --- a/app/src/App.vue +++ b/app/src/App.vue @@ -40,9 +40,9 @@ - + - + @@ -86,25 +86,15 @@ export default { ViewLockOverlay }, - data () { - return { - transitionName: null - } - }, - computed: { - ...mapGetters(['connected', 'yunohost', 'transitions', 'waiting']) - }, - - watch: { - // Set the css class to animate the components transition - '$route' (to, from) { - if (!this.transitions || from.name === null) return - // Use the breadcrumb array length as a direction indicator - const toDepth = to.meta.breadcrumb.length - const fromDepth = from.meta.breadcrumb.length - this.transitionName = toDepth < fromDepth ? 'slide-right' : 'slide-left' - } + ...mapGetters([ + 'connected', + 'yunohost', + 'routerKey', + 'transitions', + 'transitionName', + 'waiting' + ]) }, methods: { diff --git a/app/src/components/ConfigPanel.vue b/app/src/components/ConfigPanel.vue new file mode 100644 index 00000000..be92c993 --- /dev/null +++ b/app/src/components/ConfigPanel.vue @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + {{ section.name }} {{ section.help }} + + + + + + + + + + + + + + + diff --git a/app/src/components/ConfigPanels.vue b/app/src/components/ConfigPanels.vue index d77f5459..ff8aa820 100644 --- a/app/src/components/ConfigPanels.vue +++ b/app/src/components/ConfigPanels.vue @@ -1,67 +1,50 @@ - - - - - - - - - - - - - - - {{ section.name }} {{ section.help }} - - - - - - - - - - - - - - + diff --git a/app/src/components/globals/TabForm.vue b/app/src/components/globals/AbstractForm.vue similarity index 74% rename from app/src/components/globals/TabForm.vue rename to app/src/components/globals/AbstractForm.vue index 2d8c3d7a..77c4e78d 100644 --- a/app/src/components/globals/TabForm.vue +++ b/app/src/components/globals/AbstractForm.vue @@ -1,40 +1,37 @@ - - - {{ name }} - - + - - + - - - {{ submitText ? submitText : $t('save') }} - + + + + {{ submitText || $t('save') }} + + - + diff --git a/app/src/components/globals/Spinner.vue b/app/src/components/globals/Spinner.vue index adfd699e..eb86c637 100644 --- a/app/src/components/globals/Spinner.vue +++ b/app/src/components/globals/Spinner.vue @@ -1,5 +1,5 @@ - +