Skip to content
Snippets Groups Projects
Commit ddeada2d authored by D4rkHeart's avatar D4rkHeart
Browse files

[Refactor] As per MR, we can now double click anywhere

- Right click has now no effect on the application oppening
- used the @nborboen solution
parent b60d3897
No related branches found
No related tags found
1 merge request!24[Feat] Open application in a new tab
......@@ -347,8 +347,29 @@ export default {
event.preventDefault();
} else {
this.$router.push('/application/' + id);
}},
handleClick(id, event) {
const route = { name: 'application', params: { id: id } };
// Check for middle click
if (event.button === 1) {
const newTab = window.open(this.$router.resolve(route).href, '_blank');
if (newTab) {
newTab.focus();
}
event.preventDefault();
}
},
handleDoubleClick(id) {
const route = { name: 'application', params: { id: id } };
const newTab = window.open(this.$router.resolve(route).href, '_blank');
if (newTab) {
newTab.focus();
}
},
handleContextMenu(id, event) {
event.preventDefault();
},
components: {
ApplicationsFilters,
MailDialog
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment