mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2026-01-17 12:02:26 +01:00
feat:#37 switched button locations
This commit is contained in:
@@ -87,6 +87,32 @@ const hasContent = computed(() => {
|
||||
>
|
||||
<slot name="content"></slot>
|
||||
</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>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -23,6 +23,10 @@ import AdditionalModuleTable from "@/components/AdditionalModuleTable.vue";
|
||||
|
||||
const store = moduleStore();
|
||||
|
||||
function topFunction() {
|
||||
window.scrollTo({top: 0, behavior: 'smooth'});
|
||||
}
|
||||
|
||||
async function nextStep() {
|
||||
await router.push("/rename-modules");
|
||||
}
|
||||
@@ -35,7 +39,6 @@ async function nextStep() {
|
||||
{{ $t("additionalModules.subTitle") }}
|
||||
</h3>
|
||||
</div>
|
||||
<AdditionalModuleTable />
|
||||
<div
|
||||
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()"
|
||||
/>
|
||||
</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>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user