File tree 2 files changed +15
-8
lines changed
2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -165,15 +165,17 @@ getBucketLifecycleConfiguration on bucket ${this.options.s3Bucket} in region ${t
165
165
const pathColumn = resourceConfig . columns [ pathColumnIndex ] ;
166
166
167
167
// add preview column to list
168
- resourceConfig . columns [ pathColumnIndex ] . components . list = {
169
- file : this . componentPath ( 'preview.vue' ) ,
170
- meta : pluginFrontendOptions ,
171
- } ;
168
+ if ( this . options . preview ?. usePreviewComponents !== false ) {
169
+ resourceConfig . columns [ pathColumnIndex ] . components . list = {
170
+ file : this . componentPath ( 'preview.vue' ) ,
171
+ meta : pluginFrontendOptions ,
172
+ } ;
172
173
173
- resourceConfig . columns [ pathColumnIndex ] . components . show = {
174
- file : this . componentPath ( 'preview.vue' ) ,
175
- meta : pluginFrontendOptions ,
176
- } ;
174
+ resourceConfig . columns [ pathColumnIndex ] . components . show = {
175
+ file : this . componentPath ( 'preview.vue' ) ,
176
+ meta : pluginFrontendOptions ,
177
+ } ;
178
+ }
177
179
178
180
// insert virtual column after path column if it is not already there
179
181
const virtualColumnIndex = resourceConfig . columns . findIndex ( ( column : any ) => column . name === virtualColumn . name ) ;
Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ export type PluginOptions = {
65
65
66
66
preview ?: {
67
67
68
+ /**
69
+ * Whether to use preview components provided by the plugin. BY default true
70
+ */
71
+ usePreviewComponents ?: boolean ,
72
+
68
73
/**
69
74
* Maximum width of the preview image
70
75
*/
You can’t perform that action at this time.
0 commit comments