Skip to content

Commit c046711

Browse files
committed
fix: tooltip not update when backup type changed
1 parent 0efabba commit c046711

File tree

1 file changed

+3
-0
lines changed
  • src/pages/app/components/Option/components/BackupOption

1 file changed

+3
-0
lines changed

src/pages/app/components/Option/components/BackupOption/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const _default = defineComponent((_, ctx) => {
6969
</OptionItem>
7070
{backupType.value === 'gist' && <>
7171
<OptionItem
72+
key="gist-token"
7273
label={_ => 'Personal Access Token {info} {input}'}
7374
v-slots={{
7475
info: () => <OptionTooltip>{t(msg => msg.option.backup.meta.gist.authInfo)}</OptionTooltip>
@@ -86,6 +87,7 @@ const _default = defineComponent((_, ctx) => {
8687
</>}
8788
{backupType.value === 'obsidian_local_rest_api' && <>
8889
<OptionItem
90+
key="obsidian-endpoint"
8991
label={msg => msg.option.backup.label.endpoint}
9092
v-slots={{
9193
info: () => <OptionTooltip>{t(msg => msg.option.backup.meta.obsidian_local_rest_api.endpointInfo)}</OptionTooltip>
@@ -129,6 +131,7 @@ const _default = defineComponent((_, ctx) => {
129131
</>}
130132
{backupType.value === 'web_dav' && <>
131133
<OptionItem
134+
key="web-dav-endpoint"
132135
label={msg => msg.option.backup.label.endpoint}
133136
v-slots={{ info: () => '' }}
134137
required

0 commit comments

Comments
 (0)