Fix slots-template issue in all dialog components

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-10-23 17:01:08 +02:00
parent b8f6bd49af
commit 13ea3e3c95
22 changed files with 309 additions and 251 deletions
+18 -13
View File
@@ -74,11 +74,13 @@ export default {
<template>
<Card :show-highlight-border="false">
<h4
slot="title"
v-clean-html="t('harvester.modal.quota.editQuota')"
class="text-default-text"
/>
<template #title>
<h4
v-clean-html="t('harvester.modal.quota.editQuota')"
class="text-default-text"
/>
</template>
<template #body>
<Banner color="info">
{{ t('harvester.modal.quota.bannerMessage') }}
@@ -96,15 +98,18 @@ export default {
class="mb-20"
/>
</template>
<div slot="actions" class="actions">
<div class="buttons">
<button class="btn role-secondary mr-10" @click="close">
{{ t('generic.cancel') }}
</button>
<AsyncButton @click="save" />
<template #actions>
<div class="actions">
<div class="buttons">
<button class="btn role-secondary mr-10" @click="close">
{{ t('generic.cancel') }}
</button>
<AsyncButton @click="save" />
</div>
<Banner v-for="(err, i) in errors" :key="i" color="error" :label="err" />
</div>
<Banner v-for="(err, i) in errors" :key="i" color="error" :label="err" />
</div>
</template>
</Card>
</template>