File tree 3 files changed +6
-3
lines changed
static/scripts/release-editor
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 498
498
<!-- /ko -->
499
499
500
500
<!-- ko if: mediums() && mediums().length -->
501
- <div data-bind="guessCase: $root.guessCaseMediaNames .bind($data)">
501
+ <div data-bind="guessCase: $root.guessCaseAllMedia .bind($data)">
502
502
[% guesscase(show_icon=1) %]
503
503
</div>
504
504
<!-- /ko -->
Original file line number Diff line number Diff line change @@ -127,10 +127,12 @@ const actions = {
127
127
}
128
128
} ,
129
129
130
- guessCaseMediaNames : function ( ) {
130
+ guessCaseAllMedia : function ( ) {
131
131
for ( const medium of this . mediums . peek ( ) ) {
132
132
releaseEditor . guessCaseMediumName ( medium ) ;
133
- releaseEditor . guessCaseTrackNames ( medium ) ;
133
+ if ( ! medium . collapsed . peek ( ) ) {
134
+ releaseEditor . guessCaseTrackNames ( medium ) ;
135
+ }
134
136
}
135
137
} ,
136
138
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ ko.bindingHandlers.artistCreditEditor = {
99
99
const artistCredit = track . artistCredit . peek ( ) ;
100
100
101
101
track . medium . release . mediums ( )
102
+ . filter ( m => ! m . collapsed . peek ( ) )
102
103
. flatMap ( m => m . tracks ( ) )
103
104
. forEach ( function ( t ) {
104
105
if ( t === track ) {
You can’t perform that action at this time.
0 commit comments