|
|
@ -123,6 +123,9 @@ |
|
|
|
@change="saveOrUpdate(field, i)" |
|
|
|
@change="saveOrUpdate(field, i)" |
|
|
|
> |
|
|
|
> |
|
|
|
<template #label> |
|
|
|
<template #label> |
|
|
|
|
|
|
|
<v-icon color="grey darken-4" small class="mr-1"> |
|
|
|
|
|
|
|
{{ field.icon }} |
|
|
|
|
|
|
|
</v-icon> |
|
|
|
<span class="caption">{{ field.title }}</span> |
|
|
|
<span class="caption">{{ field.title }}</span> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</v-checkbox> |
|
|
|
</v-checkbox> |
|
|
@ -172,6 +175,7 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import draggable from 'vuedraggable' |
|
|
|
import draggable from 'vuedraggable' |
|
|
|
import { getSystemColumnsIds } from 'nocodb-sdk' |
|
|
|
import { getSystemColumnsIds } from 'nocodb-sdk' |
|
|
|
|
|
|
|
import { getUIDTIcon } from '~/components/project/spreadsheet/helpers/uiTypes' |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'FieldsMenu', |
|
|
|
name: 'FieldsMenu', |
|
|
@ -346,7 +350,8 @@ export default { |
|
|
|
title: c.title, |
|
|
|
title: c.title, |
|
|
|
fk_column_id: c.id, |
|
|
|
fk_column_id: c.id, |
|
|
|
...(fieldById[c.id] ? fieldById[c.id] : {}), |
|
|
|
...(fieldById[c.id] ? fieldById[c.id] : {}), |
|
|
|
order: (fieldById[c.id] && fieldById[c.id].order) || order++ |
|
|
|
order: (fieldById[c.id] && fieldById[c.id].order) || order++, |
|
|
|
|
|
|
|
icon: getUIDTIcon(c.uidt) |
|
|
|
})) |
|
|
|
})) |
|
|
|
.sort((a, b) => a.order - b.order) |
|
|
|
.sort((a, b) => a.order - b.order) |
|
|
|
} else if (this.isPublic) { |
|
|
|
} else if (this.isPublic) { |
|
|
|