feat:#37 switched button locations

This commit is contained in:
Elmar Kresse
2024-07-08 20:55:39 +02:00
parent 070e0ac0b0
commit 78472a42d6
4 changed files with 46 additions and 3 deletions

View File

@@ -109,7 +109,8 @@
"to": " bis ", "to": " bis ",
"of": " von insgesamt " "of": " von insgesamt "
}, },
"eventType": "Ereignistyp" "eventType": "Ereignistyp",
"scrollToTop": "Nach oben scrollen"
}, },
"renameModules": { "renameModules": {
"reminder": "Erinnerung", "reminder": "Erinnerung",

View File

@@ -109,7 +109,8 @@
"to": " to ", "to": " to ",
"of": " of " "of": " of "
}, },
"eventType": "event type" "eventType": "event type",
"scrollToTop": "scroll to top"
}, },
"renameModules": { "renameModules": {
"reminder": "reminder", "reminder": "reminder",

View File

@@ -87,6 +87,32 @@ const hasContent = computed(() => {
> >
<slot name="content"></slot> <slot name="content"></slot>
</div> </div>
<div
v-if="button"
:class = "[
hideContent
? ['opacity-0', 'pointer-events-none', 'h-1rem', 'overflow-hidden']
: [
'flex',
'flex-wrap',
'my-3',
'gap-2',
'w-full',
'lg:w-8',
'align-items-center',
'justify-content-end',
]
]"
class=""
>
<Button
:disabled="button.disabled"
class="col-12 md:col-4"
:icon="button.icon"
:label="button.label"
@click="button.onClick()"
/>
</div>
</div> </div>
</template> </template>

View File

@@ -23,6 +23,10 @@ import AdditionalModuleTable from "@/components/AdditionalModuleTable.vue";
const store = moduleStore(); const store = moduleStore();
function topFunction() {
window.scrollTo({top: 0, behavior: 'smooth'});
}
async function nextStep() { async function nextStep() {
await router.push("/rename-modules"); await router.push("/rename-modules");
} }
@@ -35,7 +39,6 @@ async function nextStep() {
{{ $t("additionalModules.subTitle") }} {{ $t("additionalModules.subTitle") }}
</h3> </h3>
</div> </div>
<AdditionalModuleTable />
<div <div
class="flex align-items-center justify-content-end h-4rem m-2 w-full lg:w-10" class="flex align-items-center justify-content-end h-4rem m-2 w-full lg:w-10"
> >
@@ -47,5 +50,17 @@ async function nextStep() {
@click="nextStep()" @click="nextStep()"
/> />
</div> </div>
<AdditionalModuleTable />
<div
class="flex align-items-center justify-content-end h-4rem m-2 w-full lg:w-10"
>
<Button
class="col-12 md:col-4 mb-3 align-self-end"
severity="secondary"
icon="pi pi-arrow-up"
:label="$t('additionalModules.scrollToTop')"
@click="topFunction()"
/>
</div>
</div> </div>
</template> </template>