mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 08:32:25 +01:00
fix dialog title
This commit is contained in:
parent
7aa2c67701
commit
482decb511
4 changed files with 21 additions and 19 deletions
|
|
@ -5,7 +5,7 @@
|
|||
:fullscreen="fullscreen"
|
||||
:transition="fullscreen ? 'dialog-bottom-transition' : undefined"
|
||||
max-width="600px"
|
||||
:aria-label="$formatMessage(titleMessage)"
|
||||
:aria-label="dialogTitle"
|
||||
@after-leave="reset()"
|
||||
>
|
||||
<template #default="{ isActive }">
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
@submit.prevent="generateApiKey()"
|
||||
>
|
||||
<v-card
|
||||
:title="$formatMessage(titleMessage)"
|
||||
:title="dialogTitle"
|
||||
:loading="isLoading"
|
||||
>
|
||||
<v-card-text>
|
||||
|
|
@ -188,9 +188,9 @@ function reset() {
|
|||
creationError.value = ''
|
||||
}
|
||||
|
||||
const titleMessage = {
|
||||
const dialogTitle = intl.formatMessage({
|
||||
description: 'Generate API key dialog: title',
|
||||
defaultMessage: 'Generate new API key',
|
||||
id: 'ycrpqO',
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@
|
|||
:transition="fullscreen ? 'dialog-bottom-transition' : undefined"
|
||||
max-width="600px"
|
||||
scrollable
|
||||
:aria-label="$formatMessage(titleMessage)"
|
||||
:aria-label="dialogTitle"
|
||||
@after-leave="reset()"
|
||||
>
|
||||
<template #default="{ isActive }">
|
||||
<v-card :title="$formatMessage(titleMessage)">
|
||||
<v-card :title="dialogTitle">
|
||||
<template #append>
|
||||
<v-icon
|
||||
icon="i-mdi:close"
|
||||
|
|
@ -133,11 +133,11 @@ function reset() {
|
|||
filterRef.value = filter
|
||||
}
|
||||
|
||||
const titleMessage = {
|
||||
const dialogTitle = intl.formatMessage({
|
||||
description: 'Book picker dialog: title',
|
||||
defaultMessage: 'Select book',
|
||||
id: 'ycrpqO',
|
||||
}
|
||||
id: 'SZHxy4',
|
||||
})
|
||||
|
||||
function filterFn(
|
||||
value: string,
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@
|
|||
scrollable
|
||||
:transition="fullscreen ? 'dialog-bottom-transition' : undefined"
|
||||
max-width="600px"
|
||||
:aria-label="$formatMessage(titleMessage)"
|
||||
:aria-label="dialogTitle"
|
||||
@after-leave="reset()"
|
||||
>
|
||||
<template #default="{ isActive }">
|
||||
<v-card :title="$formatMessage(titleMessage)">
|
||||
<v-card :title="dialogTitle">
|
||||
<template #append>
|
||||
<v-icon
|
||||
icon="i-mdi:close"
|
||||
|
|
@ -165,11 +165,11 @@ function reset() {
|
|||
newName.value = existingName
|
||||
}
|
||||
|
||||
const titleMessage = {
|
||||
const dialogTitle = intl.formatMessage({
|
||||
description: 'Filename picker dialog: title',
|
||||
defaultMessage: 'Destination filename',
|
||||
id: 'ycrpqO',
|
||||
}
|
||||
id: '3Pm2PO',
|
||||
})
|
||||
|
||||
const bookTableHeaders = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@
|
|||
:fullscreen="fullscreen"
|
||||
:transition="fullscreen ? 'dialog-bottom-transition' : undefined"
|
||||
max-width="600px"
|
||||
:aria-label="$formatMessage(titleMessage)"
|
||||
:aria-label="dialogTitle"
|
||||
@after-leave="reset()"
|
||||
>
|
||||
<template #default="{ isActive }">
|
||||
<v-card :title="$formatMessage(titleMessage)">
|
||||
<v-card :title="dialogTitle">
|
||||
<template #append>
|
||||
<v-icon
|
||||
icon="i-mdi:close"
|
||||
|
|
@ -113,8 +113,10 @@ import { seriesThumbnailUrl } from '@/api/images'
|
|||
import { refDebounced } from '@vueuse/core'
|
||||
import { useLibraries } from '@/colada/libraries'
|
||||
import { PageRequest } from '@/types/PageRequest'
|
||||
import { useIntl } from 'vue-intl'
|
||||
|
||||
const showDialog = defineModel<boolean>('dialog', { required: false })
|
||||
const intl = useIntl()
|
||||
|
||||
const {
|
||||
includeOneShots = true,
|
||||
|
|
@ -173,10 +175,10 @@ function reset() {
|
|||
searchStringRef.value = searchString
|
||||
}
|
||||
|
||||
const titleMessage = {
|
||||
const dialogTitle = intl.formatMessage({
|
||||
description: 'Series picker dialog: title',
|
||||
defaultMessage: 'Select series',
|
||||
id: 'ycrpqO',
|
||||
}
|
||||
id: 'SIfmpC',
|
||||
})
|
||||
</script>
|
||||
<script setup lang="ts"></script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue