dont allow to sort m2a and translations (#4750)

This commit is contained in:
Nitwel
2021-03-30 19:09:02 +02:00
committed by GitHub
parent 187384b831
commit 8753c2899a

View File

@@ -463,7 +463,10 @@ export default defineComponent({
type: field.type,
field: field.field,
},
sortable: ['json', 'o2m', 'm2o', 'file', 'files', 'alias', 'presentation'].includes(field.type) === false,
sortable:
['json', 'o2m', 'm2o', 'm2a', 'file', 'files', 'alias', 'presentation', 'translations'].includes(
field.type
) === false,
}));
},
set(val) {
@@ -584,8 +587,8 @@ export default defineComponent({
position: sticky;
left: 0;
display: flex;
justify-content: space-between;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 32px var(--content-padding);
@@ -595,8 +598,8 @@ export default defineComponent({
.per-page {
display: flex;
justify-content: flex-end;
align-items: center;
justify-content: flex-end;
width: 240px;
color: var(--foreground-subdued);