Skip to content

Commit

Permalink
fix: Smart picker properly displays widget
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <[email protected]>
  • Loading branch information
elzody authored and juliusknorr committed Jun 27, 2024
1 parent 8745d27 commit d12e1e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shared/components/ncTable/sections/CustomTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ import {
TYPE_META_ID, TYPE_META_CREATED_BY, TYPE_META_CREATED_AT, TYPE_META_UPDATED_BY, TYPE_META_UPDATED_AT,
} from '../../../../shared/constants.js'
import { MetaColumns } from '../mixins/metaColumns.js'
import { translate as t } from '@nextcloud/l10n'
export default {
name: 'CustomTable',
Expand Down Expand Up @@ -316,6 +317,7 @@ export default {
},
methods: {
t,
addMagicFieldsValues(filter) {
Object.values(MagicFields).forEach(field => {
const newFilterValue = filter.value.replace('@' + field.id, field.replace)
Expand Down
5 changes: 5 additions & 0 deletions src/views/SmartPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,12 @@ export default {
const { default: store } = await import(
/* webpackChunkName: 'store' */
'../store/store.js')
const { default: data } = await import(
/* webpackChunkName: 'store' */
'../store/data.js')

this.$store = store
this.$store.data = data
}
},

Expand Down Expand Up @@ -176,6 +180,7 @@ export default {
this.richObject.rowsCount = this.value.rowsCount
this.richObject.title = this.value.label
this.richObject.type = this.value.type
this.richObject.id = this.value.value
},
async loadColumnsForContentPreview() {
if (this.value === null) {
Expand Down

0 comments on commit d12e1e7

Please sign in to comment.