fix: AddModal button not present on desktop (#935)

This commit is contained in:
Rémi Marseault 2023-07-04 17:26:15 +02:00 committed by GitHub
parent 7db73402d1
commit 8a2e2bf8a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 8 deletions

View file

@ -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">
@ -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' })
},

View file

@ -40,11 +40,6 @@ export default {
mdiClose,
mdiPlus
}
},
methods: {
addModal(name) {
this.createModal(name)
}
}
}
</script>