diff --git a/src/assets/icons-v3/lock.svg b/src/assets/icons-v3/lock.svg new file mode 100644 index 00000000..6da3e1ae --- /dev/null +++ b/src/assets/icons-v3/lock.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons-v3/setting.svg b/src/assets/icons-v3/setting.svg new file mode 100644 index 00000000..0ae5fff0 --- /dev/null +++ b/src/assets/icons-v3/setting.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/images/metalet-logo.png b/src/assets/images/metalet-logo.png deleted file mode 100644 index b8d147b6..00000000 Binary files a/src/assets/images/metalet-logo.png and /dev/null differ diff --git a/src/components/ResetModal.vue b/src/components/ResetModal.vue index 2914022b..1c1da0a3 100644 --- a/src/components/ResetModal.vue +++ b/src/components/ResetModal.vue @@ -1,37 +1,32 @@ @@ -40,48 +35,56 @@ const disconnect = async () => {
- Reset Account + Reset Wallet
-
-

- This action will reset your current account from Metalet. Make sure you have your seed phrase backed up. -

-

You have to enter your password to confirm this action.

- -
- - -
- +
+
+
+ +

We will not store or help you retrieve your password.

+
+
+ +

+ If you forget your password, you can reset your wallet. It is also possible to re-import the wallet + using a mnemonic phrase or private key. +

+
+
+ +

+ Note that resetting the wallet without backup will permanently lose all assets. Before resetting, be + sure to back up all wallets. +

-
-

Password is incorrect

+
+

+ To confirm wallet reset, please enter: + RESET +

+
-
+
diff --git a/src/components/headers/SettingMenu.vue b/src/components/headers/SettingMenu.vue index 659855fa..eba2e641 100644 --- a/src/components/headers/SettingMenu.vue +++ b/src/components/headers/SettingMenu.vue @@ -2,8 +2,9 @@ import { ref } from 'vue' import password from '@/lib/password' import { useRouter } from 'vue-router' -import ResetModal from '../ResetModal.vue' -import SettingIcon from '@/assets/icons/setting-v3.svg' +import LockIcon from '@/assets/icons-v3/lock.svg' +import ResetModal from '@/components/ResetModal.vue' +import SettingIcon from '@/assets/icons-v3/setting.svg' import { Menu, MenuButton, MenuItems, MenuItem } from '@headlessui/vue' const router = useRouter() @@ -12,48 +13,41 @@ const hasPassword = ref(false) password.has().then((has) => { hasPassword.value = has }) -const lock = async () => { - await password.lock() - router.push('/lock') -} - -const setPassword = () => { - router.push('/wallet/set-password') -} const showResetModal = ref(false) const toAccountList = () => { router.push('/accounts') } - -const toSetting = () => { - router.push('/settings') -}