Fix crash when clicking non-document tabs and remove extraneous tabs (#352)

This commit is contained in:
Oliver Davies
2021-08-20 16:30:48 -07:00
committed by GitHub
parent 7b28a1754c
commit 79012ba08d
3 changed files with 93 additions and 93 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
v-for="(tabLabel, tabIndex) in tabLabels"
:key="tabIndex"
@click.middle="closeDocumentWithConfirmation(tabIndex)"
@click="selectDocument(tabIndex)"
@click="panelType === 'Document' && selectDocument(tabIndex)"
>
<span>{{ tabLabel }}</span>
<IconButton :action="() => closeDocumentWithConfirmation(tabIndex)" :icon="'CloseX'" :size="16" v-if="tabCloseButtons" />