0
0
Fork 0

perf: Dms buttons tooltip

This commit is contained in:
Javier Segarra 2024-06-28 13:22:39 +02:00
parent 0e8106af17
commit 2d2fff1bf3
1 changed files with 26 additions and 3 deletions

View File

@ -383,10 +383,30 @@ function shouldRenderButton(button, isExternal = false) {
<VnDmsImportForm @on-data-saved="dmsRef.fetch()" />
</QDialog>
<QPageSticky position="bottom-right" :offset="[25, 25]">
<QBtn fab color="primary" icon="add" @click="showFormDialog()" />
<QBtn
fab
color="primary"
icon="publish"
@click="showFormDialog()"
class="fill-icon"
>
<QTooltip>
{{ t('Import from existing') }}
</QTooltip>
</QBtn>
</QPageSticky>
<QPageSticky v-if="allowImport" 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('Upload file') }}
</QTooltip>
</QBtn>
</QPageSticky>
</template>
<style scoped>
@ -404,4 +424,7 @@ en:
es:
contentTypesInfo: Tipos de archivo permitidos {allowedContentTypes}
Generate identifier for original file: Generar identificador para archivo original
</i18n>
Upload file: Subir fichero
Import from existing: Importar desde existente
</i18n>