Use vue router to link proxy toast to settings page

This commit is contained in:
Hossein Nedaee
2019-10-20 00:19:07 +03:30
parent 1c99ffa3cc
commit 395029489a

View File

@@ -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' });
}
}
});
}