refactor: modals

This commit is contained in:
liyasthomas
2021-07-09 22:49:45 +05:30
parent 08d0765cfb
commit c7062ad613
41 changed files with 712 additions and 664 deletions

View File

@@ -2,7 +2,7 @@
<SmartModal v-if="show" @close="hideModal">
<template #header>
<h3 class="heading">{{ $t("import_export") }} {{ $t("collections") }}</h3>
<div>
<div class="flex">
<tippy
ref="options"
interactive
@@ -54,8 +54,8 @@
</div>
</template>
<template #body>
<div class="flex flex-col items-start p-2">
<ButtonSecondary
<div class="flex flex-col space-y-2">
<SmartItem
v-tippy="{ theme: 'tooltip' }"
:title="$t('replace_current')"
icon="folder_special"
@@ -70,7 +70,7 @@
accept="application/json"
@change="replaceWithJSON"
/>
<ButtonSecondary
<SmartItem
v-tippy="{ theme: 'tooltip' }"
:title="$t('preserve_current')"
icon="create_new_folder"
@@ -85,7 +85,7 @@
accept="application/json"
@change="importFromJSON"
/>
<ButtonSecondary
<SmartItem
v-tippy="{ theme: 'tooltip' }"
:title="$t('download_file')"
icon="drive_file_move"