Use vue router to link proxy toast to settings page
This commit is contained in:
parent
1c99ffa3cc
commit
395029489a
1 changed files with 5 additions and 2 deletions
|
|
@ -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' });
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue