Skip to content

Commit

Permalink
ftr/PartsInGoToMenu: wrap parts in array and fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Bachmann committed Dec 9, 2024
1 parent 3fae5ec commit 10ba464
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions add/data/xql/getMovements.xql
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ let $movements as array(*)* :=
map {
'id': $movement/string(@xml:id),
'name': $movement/string(@label),
'parts': for $part in $movement//mei:part
return
map {
'id': $part/string(@xml:id),
'name': $part/string(@label)
}
'parts': array {
for $part in $movement//mei:part
return
map {
'id': $part/string(@xml:id),
'name': $part/string(@label)
}
}

}
}
Expand Down
2 changes: 1 addition & 1 deletion app/view/window/source/SourceView.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ Ext.define('EdiromOnline.view.window.source.SourceView', {


// check if contains more than one item and save to variable as boolean
var isDisabled = ((movementItems.length <= 1) ? true : false);
var isDisabled = ((movementItems.length < 1) ? true : false);

// add gotoMovement entry to goto menu
me.gotoMenu.menu.add({
Expand Down

0 comments on commit 10ba464

Please sign in to comment.