Skip to content

Commit 2765dc6

Browse files
committed
Merge branch 'develop'
2 parents 852b4b7 + e55fe68 commit 2765dc6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/angular-app/languageforge/lexicon/editor/editor.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<span class="d-none d-md-inline-block">List</span></a>
1212
</div>
1313
<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()">
1515
<button class="btn btn-std" data-ng-click="$ctrl.skipToEntry(-1)" ng-disabled="!$ctrl.canSkipToEntry(-1)">
1616
<span class="fa fa-arrow-left"></span> <span class="d-none d-lg-inline-block">Previous</span>
1717
</button>
@@ -43,7 +43,7 @@
4343
</div>
4444
</div>
4545
</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()">
4747
<div class="col">
4848
<div class="word-definition-title">
4949
<dc-rendered config="$ctrl.lecConfig.entry" global-config="$ctrl.lecConfig"

src/angular-app/languageforge/lexicon/editor/editor.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,6 +1157,9 @@ export class LexiconEditorController implements angular.IController {
11571157
}
11581158

11591159
private prepCustomFieldsForUpdate(data: any): any {
1160+
if (Array.isArray(data)) {
1161+
return data.map(item => this.prepCustomFieldsForUpdate(item));
1162+
}
11601163
data.customFields = {};
11611164
for (const fieldName in data) {
11621165
if (data.hasOwnProperty(fieldName)) {

src/angular-app/languageforge/lexicon/editor/field/_dc-rendered.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727
}
2828
@include media-breakpoint-down(sm) {
29-
.dc-rendered-on-desktop {
29+
.hide-on-mobile {
3030
display: none;
3131
}
3232
}

0 commit comments

Comments
 (0)