Skip to content

Commit 3670bbf

Browse files
author
Petr Kachanovsky
committed
fix: adpot new system building
1 parent 2770917 commit 3670bbf

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

index.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,14 +204,26 @@ export default class I18nPlugin extends AdminForthPlugin {
204204
}
205205

206206
// if showIn is not defined, add it as empty
207-
column.showIn = [];
207+
column.showIn = {
208+
show: false,
209+
list: false,
210+
edit: false,
211+
create: false,
212+
filter: false,
213+
};
208214

209215
// add virtual field for incomplete
210216
resourceConfig.columns.unshift({
211217
name: 'fully_translated',
212218
label: 'Fully translated',
213219
virtual: true,
214-
showIn: ['list', 'show', 'filter'],
220+
showIn: {
221+
show: true,
222+
list: true,
223+
edit: false,
224+
create: false,
225+
filter: true,
226+
},
215227
type: AdminForthDataTypes.BOOLEAN,
216228
});
217229
}

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
"type": "module",
77
"scripts": {
88
"build": "tsc && rsync -av --exclude 'node_modules' custom dist/",
9-
"rollout": "npm run build && npm version patch && npm publish --access public && npm run rollout-next",
10-
"rollout-next": "npm run build && npm version prerelease --preid=next && npm publish --tag next",
119
"prepare": "npm link adminforth"
1210
},
1311
"repository": {

0 commit comments

Comments
 (0)