Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Use vue router to link proxy toast to settings page

Hossein Nedaee395029489a28
diff --git a/pages/index.vue b/pages/index.vue
index 78cd3e0a9..65a6a6f5d 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -846,9 +846,12 @@
});
if(!this.$store.state.postwoman.settings.PROXY_ENABLED) {
this.$toast.info('Turn on the proxy', {
- duration: 4000,
+ dontClose : true,
action: {
- text: 'Click',
+ text: 'Go to settings',
+ onClick : (e, toastObject) => {
+ this.$router.push({ path: '/settings' });
+ }
}
});
}