From: Wilson Date: Thu, 29 Jun 2023 17:29:11 +0000 (+0800) Subject: fix(devtools): wrong toast message (#2290) X-Git-Tag: @pinia/testing@0.1.3~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dfc04d356c86128f868b12182615bd57228111d6;p=thirdparty%2Fvuejs%2Fpinia.git fix(devtools): wrong toast message (#2290) --- diff --git a/packages/pinia/src/devtools/actions.ts b/packages/pinia/src/devtools/actions.ts index 6ca91d30..69ed2a18 100644 --- a/packages/pinia/src/devtools/actions.ts +++ b/packages/pinia/src/devtools/actions.ts @@ -112,7 +112,7 @@ export async function actionGlobalOpenStateFile(pinia: Pinia) { toastMessage(`Global state imported from "${file.name}".`) } catch (error) { toastMessage( - `Failed to export the state as JSON. Check the console for more details.`, + `Failed to import the state from JSON. Check the console for more details.`, 'error' ) console.error(error)