File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 146146 density =" compact"
147147 rounded =" 1"
148148 >
149- <v-btn value =" code" size =" small" prepend-icon =" mdi-code-tags" >Code</v-btn >
150149 <v-btn v-if =" transformOutputGeoJson" value =" map" size =" small" prepend-icon =" mdi-map" >Map</v-btn >
151150 <v-btn v-if =" transformOutputIsHtml" value =" web" size =" small" prepend-icon =" mdi-web" >Web</v-btn >
151+ <v-btn value =" code" size =" small" prepend-icon =" mdi-code-tags" >Code</v-btn >
152152 </v-btn-toggle >
153153 <v-spacer />
154154 <copy-to-clipboard-button :text =" transformOutputStatus.contents" color =" primary" variant =" flat" >Copy to clipboard</copy-to-clipboard-button >
@@ -303,10 +303,16 @@ const refBBlock = ref(null);
303303
304304watch (() => props .language , () => {
305305 showTransformDetails .value = false ;
306- transformOutputView .value = ' code' ;
306+ transformOutputView .value = transformOutputIsHtml . value ? ' web ' : ' code' ;
307307 profilesMenuVisible .value = false ;
308308});
309309
310+ watch (transformOutputGeoJson, (geoJson ) => {
311+ if (geoJson && transformOutputView .value === ' code' ) {
312+ transformOutputView .value = ' map' ;
313+ }
314+ });
315+
310316watch (() => props .language ? .transformEntry ? .profilesValidation , async (pv ) => {
311317 if (! pv) return ;
312318 const bblocks = await bblockService .getBBlocks (true );
You can’t perform that action at this time.
0 commit comments