Skip to content

Commit

Permalink
Merge pull request #806 from molgenis/fix/804-linkfile-from-source-sh…
Browse files Browse the repository at this point in the history
…ows-preview-and-cols

fix: #804 dont show preview and columns when in create linkfile view
  • Loading branch information
marikaris authored Oct 17, 2024
2 parents 41b5764 + 089a7b4 commit 8489363
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 8489363

Please sign in to comment.