Skip to content

Commit

Permalink
feat(UI): button to clear sidebar search input
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Aug 5, 2021
1 parent 04fc1bb commit 1573de5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/renderer/components/WorkspaceExploreBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@
type="text"
:placeholder="$t('message.searchForElements')"
>
<i class="form-icon mdi mdi-magnify mdi-18px" />
<i v-if="!searchTerm" class="form-icon mdi mdi-magnify mdi-18px" />
<i
v-else
class="form-icon c-hand mdi mdi-backspace mdi-18px pr-1"
@click="searchTerm = ''"
/>
</div>
</div>
<div class="workspace-explorebar-body">
Expand Down

0 comments on commit 1573de5

Please sign in to comment.