2021-08-17 18:54:23 +02:00
|
|
|
<template>
|
|
|
|
<div class="column col-12 empty">
|
|
|
|
<p class="h6 empty-subtitle">
|
2023-08-03 18:28:50 +02:00
|
|
|
{{ t('database.thereAreNoTableFields') }}
|
2021-08-17 18:54:23 +02:00
|
|
|
</p>
|
|
|
|
<div class="empty-action">
|
2022-06-14 20:02:17 +02:00
|
|
|
<button class="btn btn-gray d-flex" @click="emit('new-field')">
|
2021-08-17 18:54:23 +02:00
|
|
|
<i class="mdi mdi-24px mdi-playlist-plus mr-2" />
|
2023-08-03 18:28:50 +02:00
|
|
|
{{ t('database.addNewField') }}
|
2021-08-17 18:54:23 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-06-14 20:02:17 +02:00
|
|
|
<script setup lang="ts">
|
|
|
|
import { useI18n } from 'vue-i18n';
|
|
|
|
|
|
|
|
const { t } = useI18n();
|
|
|
|
const emit = defineEmits(['new-field']);
|
2021-08-17 18:54:23 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.empty {
|
|
|
|
border-radius: 0;
|
|
|
|
background: transparent;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
z-index: 9;
|
|
|
|
}
|
|
|
|
</style>
|