refactor(ui): title and actions slot on modals

This commit is contained in:
liyasthomas
2021-08-08 12:42:29 +05:30
parent 4d76c83328
commit 42d2dd284f
25 changed files with 114 additions and 137 deletions

View File

@@ -1,9 +1,5 @@
<template>
<SmartModal v-if="show" @close="hideModal">
<template #header>
<h3 class="heading">{{ $t("new_environment") }}</h3>
<ButtonSecondary icon="close" @click.native="hideModal" />
</template>
<SmartModal v-if="show" :title="$t('new_environment')" @close="hideModal">
<template #body>
<div class="flex flex-col px-2">
<input

View File

@@ -1,9 +1,5 @@
<template>
<SmartModal v-if="show" @close="hideModal">
<template #header>
<h3 class="heading">{{ $t("edit_environment") }}</h3>
<ButtonSecondary icon="close" @click.native="hideModal" />
</template>
<SmartModal v-if="show" :title="$t('edit_environment')" @close="hideModal">
<template #body>
<div class="flex flex-col px-2">
<div class="flex relative">

View File

@@ -1,13 +1,14 @@
<template>
<SmartModal v-if="show" @close="hideModal">
<template #header>
<h3 class="heading">
{{ $t("import_export") }} {{ $t("environments") }}
</h3>
<div class="flex">
<SmartModal
v-if="show"
:title="`${$t('modal.import_export')} ${$t('environments')}`"
@close="hideModal"
>
<template #actions>
<span>
<tippy ref="options" interactive trigger="click" theme="popover" arrow>
<template #trigger>
<TabPrimary
<ButtonSecondary
v-tippy="{ theme: 'tooltip' }"
:title="$t('more')"
icon="more_vert"
@@ -45,8 +46,7 @@
"
/>
</tippy>
<ButtonSecondary icon="close" @click.native="hideModal" />
</div>
</span>
</template>
<template #body>
<div class="flex flex-col space-y-2">