Skip to content

Commit

Permalink
fix: AddModal button not present on desktop (#935)
Browse files Browse the repository at this point in the history
  • Loading branch information
Larsluph authored Jul 4, 2023
1 parent 7db7340 commit 8a2e2bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
13 changes: 10 additions & 3 deletions src/components/Navbar/TopActions.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
<template>
<div :class="mobile ? '' : 'flex-shrink-0 ml-0'">
<v-tooltip v-if="!mobile" bottom open-delay="400">
<template #activator="{ on }">
<v-btn small fab :text="!mobile" class="mr-0 ml-0" :aria-label="$t('navbar.topActions.addTorrent')" v-on="on" @click="createModal('AddModal')">
<v-icon color="grey">
{{ mdiPlus }}
</v-icon>
</v-btn>
</template>
<span> {{ $t('navbar.topActions.addTorrent') }}</span>
</v-tooltip>
<v-tooltip bottom open-delay="400">
<template #activator="{ on }">
<v-btn small fab :text="!mobile" class="mr-0 ml-0" :aria-label="$t('navbar.topActions.resumeSelected')" v-on="on" @click="resumeTorrents">
Expand Down Expand Up @@ -117,9 +127,6 @@ export default {
return this.createModal('ConfirmDeleteModal')
},
addModal(name) {
this.createModal(name)
},
goToSearch() {
if (this.$route.name !== 'search') this.$router.push({ name: 'search' })
},
Expand Down
5 changes: 0 additions & 5 deletions src/components/Navbar/TopMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ export default {
mdiClose,
mdiPlus
}
},
methods: {
addModal(name) {
this.createModal(name)
}
}
}
</script>

0 comments on commit 8a2e2bf

Please sign in to comment.