fix: Fix focus and emptycontent titles

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2024-09-01 09:26:21 +02:00
parent a9b65de341
commit 792a513bb5
2 changed files with 5 additions and 5 deletions

View File

@@ -69,12 +69,12 @@ export default {
color: randomColor(), color: randomColor(),
} }
}, },
mounted() {
this.$refs.inputField.focus()
},
methods: { methods: {
startCreateBoard(e) { startCreateBoard(e) {
this.editing = true this.editing = true
this.$nextTick(() => {
this.$refs?.inputField.focus()
})
}, },
async createBoard(e) { async createBoard(e) {
this.loading = true this.loading = true

View File

@@ -93,7 +93,7 @@
<template #icon> <template #icon>
<NcLoadingIcon /> <NcLoadingIcon />
</template> </template>
<template #title> <template #name>
{{ t('deck', 'Creating the new card …') }} {{ t('deck', 'Creating the new card …') }}
</template> </template>
</NcEmptyContent> </NcEmptyContent>
@@ -101,7 +101,7 @@
<template #icon> <template #icon>
<CardPlusOutline /> <CardPlusOutline />
</template> </template>
<template #title> <template #name>
{{ t('deck', 'Card "{card}" was added to "{board}"', { card: card.title, board: selectedBoard.title }) }} {{ t('deck', 'Card "{card}" was added to "{board}"', { card: card.title, board: selectedBoard.title }) }}
</template> </template>
<template #action> <template #action>