mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-06 11:49:14 +02:00
feat:#16 added frontend button
This commit is contained in:
@@ -30,6 +30,18 @@ defineProps<{
|
||||
disabled: boolean;
|
||||
onClick: () => void;
|
||||
};
|
||||
upperButton?: {
|
||||
label: string;
|
||||
icon: string;
|
||||
disabled: boolean;
|
||||
onClick: () => void;
|
||||
};
|
||||
lowerButton?: {
|
||||
label: string;
|
||||
icon: string;
|
||||
disabled: boolean;
|
||||
onClick: () => void;
|
||||
};
|
||||
}>();
|
||||
|
||||
const slots = useSlots();
|
||||
@@ -98,6 +110,23 @@ const hasContent = computed(() => {
|
||||
@click="button.onClick()"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
v-if="lowerButton"
|
||||
class="flex flex-wrap my-3 gap-2 align-items-center justify-content-end"
|
||||
>
|
||||
<Button
|
||||
:disabled="lowerButton.disabled"
|
||||
class="col-12 md:col-4"
|
||||
:icon="lowerButton.icon"
|
||||
:label="lowerButton.label"
|
||||
@click="lowerButton.onClick()"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
v-if="button"
|
||||
class="flex flex-wrap my-3 gap-2 align-items-center justify-content-end"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user