mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-26 03:08:11 +08:00
Fix crash when clicking non-document tabs and remove extraneous tabs (#352)
This commit is contained in:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user