Merge pull request #5049 from opf/fix/24265/relations-hard-reload

[24265] Use ui-sref on relation links
pull/5052/head
Oliver Günther 8 years ago committed by GitHub
commit 76881f1853
  1. 2
      frontend/app/components/wp-relations/wp-relation-row/wp-relation-row.template.html
  2. 2
      frontend/app/components/wp-relations/wp-relations-hierarchy-row/wp-relations-hierarchy-row.template.html

@ -24,7 +24,7 @@
<div class="grid-content medium-5 collapse" wp-single-relation
ng-if="$ctrl.relatedWorkPackage">
<a href="{{ singleRelationCtrl.workPackagePath($ctrl.relatedWorkPackage.id) }}"
<a ui-sref=".({ workPackageId: $ctrl.relatedWorkPackage.id})"
class="wp-relations--subject-field"
aria-label="{{ $ctrl.normalizedRelationType + ' ' + singleRelationCtrl.getFullIdentifier($ctrl.relatedWorkPackage, true) }}">
{{ singleRelationCtrl.getFullIdentifier($ctrl.relatedWorkPackage, true) }}

@ -7,7 +7,7 @@
<div class="grid-content medium-7 collapse" wp-single-relation>
<span ng-style="{'padding-left': $ctrl.indentBy + 'px'}"
class="wp-relations-hierarchy-subject">
<a href="{{ singleRelationCtrl.workPackagePath($ctrl.relatedWorkPackage.id) }}"
<a ui-sref=".({ workPackageId: $ctrl.relatedWorkPackage.id})"
class="wp-relations--subject-field"
ng-if="!$ctrl.isCurrentElement()"
aria-label="{{ ($ctrl.isParent() ? $ctrl.text.parent : $ctrl.text.children) + ' ' + singleRelationCtrl.getFullIdentifier($ctrl.relatedWorkPackage) }}"

Loading…
Cancel
Save