From 395029489a28f96571751c790dcd2d43a062f8d9 Mon Sep 17 00:00:00 2001 From: Hossein Nedaee Date: Sun, 20 Oct 2019 00:19:07 +0330 Subject: [PATCH] Use vue router to link proxy toast to settings page --- pages/index.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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' }); + } } }); }