Skip to content

Commit

Permalink
fix: v-else ui logic
Browse files Browse the repository at this point in the history
  • Loading branch information
darwintree committed Feb 19, 2024
1 parent ba9fb45 commit 175a350
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/translate/DialogueLine.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</template>
</n-button>
<n-button
v-if="supportsShare"
v-if="supportsShare && !isEditing"
class="edit-toggle"
strong
primary
Expand All @@ -57,7 +57,7 @@

<!-- the "edit-container" element is shown when the component is in edit mode -->
<div
v-else
v-if="isEditing"
class="edit-container"
@keydown.shift.enter="trySaveEdit"
@keydown.esc="cancelEdit"
Expand Down

0 comments on commit 175a350

Please sign in to comment.