mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-17 14:04:21 +01:00
@@ -699,7 +699,7 @@ const ConfigUI = (props: ConfigProps) => {
|
|||||||
type="button"
|
type="button"
|
||||||
class="rounded bg-primary p-2 text-primary-fg"
|
class="rounded bg-primary p-2 text-primary-fg"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (window.confirm(i18n()('config.confirmImport'))) {
|
if (window.confirm(i18n()('config.confirmImportOldDomainConfig'))) {
|
||||||
importConfig();
|
importConfig();
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
@@ -732,7 +732,7 @@ const ConfigUI = (props: ConfigProps) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const json = JSON.parse(text) as ReturnType<typeof config>;
|
const json = JSON.parse(text) as ReturnType<typeof config>;
|
||||||
if (window.confirm(`${i18n()('config.confirmImport')}:\n${text}`)) {
|
if (window.confirm(`import?:\n${text}`)) {
|
||||||
setConfig(json);
|
setConfig(json);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user