Skip to content

Commit

Permalink
fix: #804 dont show preview and columns when in create linkfile view
Browse files Browse the repository at this point in the history
  • Loading branch information
marikaris committed Oct 15, 2024
1 parent 41b5764 commit 089a7b4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ui/src/views/ProjectsExplorer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,12 @@
</div>
<div v-else-if="!loading_preview && !askIfPreviewIsEmpty()">
<div class="text-end fst-italic">
Preview:
{{ `${selectedFile.replace(".parquet", "")}` }} ({{
`${fileInfo.dataSizeRows}x${fileInfo.dataSizeColumns}`
}})
<span v-if="!createLinkFromSrc">
Preview:
{{ `${selectedFile.replace(".parquet", "")}` }} ({{
`${fileInfo.dataSizeRows}x${fileInfo.dataSizeColumns}`
}})
</span>
<div v-if="isLinkFileType(selectedFile)">
Linked from: {{ fileInfo.sourceLink }}
</div>
Expand Down Expand Up @@ -189,7 +191,7 @@
:n-rows="fileInfo.dataSizeRows"
></DataPreviewTable>
<ColumnNamesPreview
v-if="!editView"
v-if="!editView && !createLinkFromSrc"
:columnNames="columnNames"
:buttonName="columnNames.length > 10 ? '+ ' + (columnNames.length - 10) + ' variables: ' : columnNames.length + ' variables: '"
>
Expand Down

0 comments on commit 089a7b4

Please sign in to comment.