mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-02-26 12:21:00 +03:00
fix: AddModal button not present on desktop (#935)
This commit is contained in:
parent
7db73402d1
commit
8a2e2bf8a2
2 changed files with 10 additions and 8 deletions
|
@ -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' })
|
||||
},
|
||||
|
|
|
@ -40,11 +40,6 @@ export default {
|
|||
mdiClose,
|
||||
mdiPlus
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
addModal(name) {
|
||||
this.createModal(name)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Add table
Reference in a new issue