mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
fix: better user confirmation message
This commit is contained in:
4
src/view/settings/index.tsx
vendored
4
src/view/settings/index.tsx
vendored
@@ -39,7 +39,7 @@ export default function Settings() {
|
|||||||
const onReset = async () => {
|
const onReset = async () => {
|
||||||
const chatData = await invoke('reset_app_conf');
|
const chatData = await invoke('reset_app_conf');
|
||||||
setChatConf(chatData);
|
setChatConf(chatData);
|
||||||
const isOk = await dialog.ask(`Configuration reset successfully, whether to restart?`, {
|
const isOk = await dialog.ask(`Configuration reset successfully, do you want to restart?`, {
|
||||||
title: 'ChatGPT Preferences',
|
title: 'ChatGPT Preferences',
|
||||||
});
|
});
|
||||||
if (isOk) {
|
if (isOk) {
|
||||||
@@ -52,7 +52,7 @@ export default function Settings() {
|
|||||||
const onFinish = async (values: any) => {
|
const onFinish = async (values: any) => {
|
||||||
if (!isEqual(omit(chatConf, ['default_origin']), values)) {
|
if (!isEqual(omit(chatConf, ['default_origin']), values)) {
|
||||||
await invoke('form_confirm', { data: values, label: 'main' });
|
await invoke('form_confirm', { data: values, label: 'main' });
|
||||||
const isOk = await dialog.ask(`Configuration saved successfully, whether to restart?`, {
|
const isOk = await dialog.ask(`Configuration saved successfully, do you want to restart?`, {
|
||||||
title: 'ChatGPT Preferences',
|
title: 'ChatGPT Preferences',
|
||||||
});
|
});
|
||||||
if (isOk) {
|
if (isOk) {
|
||||||
|
|||||||
Reference in New Issue
Block a user