File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
src/angular-app/languageforge/lexicon/editor Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11
11
< span class ="d-none d-md-inline-block "> List</ span > </ a >
12
12
</ div >
13
13
< div class ="float-right " data-ng-show ="$ctrl.isAtEditorEntry() ">
14
- < div class ="btn-group " ng-form ="validateGoto " ng-hide ="$ctrl.entryListModifiers.filterActive() ">
14
+ < div class ="btn-group hide-on-mobile " ng-form ="validateGoto " ng-hide ="$ctrl.entryListModifiers.filterActive() ">
15
15
< button class ="btn btn-std " data-ng-click ="$ctrl.skipToEntry(-1) " ng-disabled ="!$ctrl.canSkipToEntry(-1) ">
16
16
< span class ="fa fa-arrow-left "> </ span > < span class ="d-none d-lg-inline-block "> Previous</ span >
17
17
</ button >
43
43
</ div >
44
44
</ div >
45
45
</ div >
46
- < div class ="row dc-rendered- on-desktop " data-ng-if ="$ctrl.isAtEditorEntry() ">
46
+ < div class ="row hide- on-mobile " data-ng-if ="$ctrl.isAtEditorEntry() ">
47
47
< div class ="col ">
48
48
< div class ="word-definition-title ">
49
49
< dc-rendered config ="$ctrl.lecConfig.entry " global-config ="$ctrl.lecConfig "
Original file line number Diff line number Diff line change @@ -1157,6 +1157,9 @@ export class LexiconEditorController implements angular.IController {
1157
1157
}
1158
1158
1159
1159
private prepCustomFieldsForUpdate ( data : any ) : any {
1160
+ if ( Array . isArray ( data ) ) {
1161
+ return data . map ( item => this . prepCustomFieldsForUpdate ( item ) ) ;
1162
+ }
1160
1163
data . customFields = { } ;
1161
1164
for ( const fieldName in data ) {
1162
1165
if ( data . hasOwnProperty ( fieldName ) ) {
Original file line number Diff line number Diff line change 26
26
}
27
27
}
28
28
@include media-breakpoint-down (sm) {
29
- .dc-rendered- on-desktop {
29
+ .hide- on-mobile {
30
30
display : none ;
31
31
}
32
32
}
You can’t perform that action at this time.
0 commit comments