Merge pull request '2629 - Open ticket lines on new window' (#465) from 2629-ticket_lines_newtab into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #465 Reviewed-by: Carlos Jimenez Ruiz <carlosjr@verdnatura.es>
This commit is contained in:
commit
2a2104936c
|
@ -50,7 +50,7 @@ export function directive($state, $window) {
|
||||||
link: function($scope, $element, $attrs) {
|
link: function($scope, $element, $attrs) {
|
||||||
const data = $scope.$eval($attrs.vnAnchor);
|
const data = $scope.$eval($attrs.vnAnchor);
|
||||||
$element.on('click', event => {
|
$element.on('click', event => {
|
||||||
if (ctrlPressed)
|
if (ctrlPressed || data.target == '_blank')
|
||||||
openNewTab($state, $window, event, data);
|
openNewTab($state, $window, event, data);
|
||||||
else
|
else
|
||||||
changeState($state, event, data);
|
changeState($state, event, data);
|
||||||
|
|
|
@ -126,7 +126,11 @@
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<vn-td actions>
|
<vn-td actions>
|
||||||
<vn-icon-button
|
<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"
|
vn-tooltip="Go to lines"
|
||||||
icon="icon-lines">
|
icon="icon-lines">
|
||||||
</vn-icon-button>
|
</vn-icon-button>
|
||||||
|
|
Loading…
Reference in New Issue