2629 - Open ticket lines on new window
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-11-24 12:10:02 +01:00
parent cca33e0945
commit d9e14a0c3a
2 changed files with 6 additions and 2 deletions

View File

@ -50,7 +50,7 @@ export function directive($state, $window) {
link: function($scope, $element, $attrs) {
const data = $scope.$eval($attrs.vnAnchor);
$element.on('click', event => {
if (ctrlPressed)
if (ctrlPressed || data.target == '_blank')
openNewTab($state, $window, event, data);
else
changeState($state, event, data);

View File

@ -126,7 +126,11 @@
</vn-td>
<vn-td actions>
<vn-icon-button
vn-anchor="::{state: 'ticket.card.sale', params: {id: ticket.id}}"
vn-anchor="::{
state: 'ticket.card.sale',
params: {id: ticket.id},
target: '_blank'
}"
vn-tooltip="Go to lines"
icon="icon-lines">
</vn-icon-button>