Add tooltip
gitea/salix-front/pipeline/pr-dev Build queued... Details

This commit is contained in:
William Buezas 2024-07-01 09:51:42 -03:00
commit 72aef18c49
2 changed files with 26 additions and 2 deletions

View File

@ -378,7 +378,11 @@ defineExpose({
/> />
</QDialog> </QDialog>
<QPageSticky position="bottom-right" :offset="[25, 25]"> <QPageSticky position="bottom-right" :offset="[25, 25]">
<QBtn fab color="primary" icon="add" @click="showFormDialog()" /> <QBtn fab color="primary" icon="add" @click="showFormDialog()" class="fill-icon">
<QTooltip>
{{ t('Upload file') }}
</QTooltip>
</QBtn>
</QPageSticky> </QPageSticky>
</template> </template>
<style scoped> <style scoped>
@ -396,4 +400,5 @@ en:
es: es:
contentTypesInfo: Tipos de archivo permitidos {allowedContentTypes} contentTypesInfo: Tipos de archivo permitidos {allowedContentTypes}
Generate identifier for original file: Generar identificador para archivo original Generate identifier for original file: Generar identificador para archivo original
Upload file: Subir fichero
</i18n> </i18n>

View File

@ -1,8 +1,12 @@
<script setup> <script setup>
import { ref } from 'vue'; import { ref } from 'vue';
import { useI18n } from 'vue-i18n';
import VnDmsList from 'src/components/common/VnDmsList.vue'; import VnDmsList from 'src/components/common/VnDmsList.vue';
import TicketDmsImportForm from 'src/pages/Ticket/Card/TicketDmsImportForm.vue'; import TicketDmsImportForm from 'src/pages/Ticket/Card/TicketDmsImportForm.vue';
const { t } = useI18n();
const dmsListRef = ref(null); const dmsListRef = ref(null);
const showImportDialog = ref(false); const showImportDialog = ref(false);
@ -23,6 +27,21 @@ const onDataSaved = () => dmsListRef.value.dmsRef.fetch();
<TicketDmsImportForm @on-data-saved="onDataSaved()" /> <TicketDmsImportForm @on-data-saved="onDataSaved()" />
</QDialog> </QDialog>
<QPageSticky position="bottom-right" :offset="[25, 90]"> <QPageSticky position="bottom-right" :offset="[25, 90]">
<QBtn fab color="primary" icon="file_copy" @click="showImportDialog = true" /> <QBtn
fab
color="primary"
icon="file_copy"
@click="showImportDialog = true"
class="fill-icon"
>
<QTooltip>
{{ t('Import from existing') }}
</QTooltip>
</QBtn>
</QPageSticky> </QPageSticky>
</template> </template>
<i18n>
es:
Import from existing: Importar desde existente
</i18n>