Skip to content
Snippets Groups Projects
Commit 13e63448 authored by Pierre-Jean CHANCELLIER's avatar Pierre-Jean CHANCELLIER
Browse files

invert msg tooltip for toggleFavourite button

parent 2be8effe
No related branches found
No related tags found
No related merge requests found
......@@ -14,8 +14,8 @@
class="btn btn-info"
v-tooltip="
$favourites.list.includes(hash.uid)
? $t('favoris.supprime')
: $t('favoris.enregistre')
? $t('favoris.enregistre')
: $t('favoris.supprime')
"
@click="$favourites.toggleFavourite(hash.uid, $event)">
<outline-user-add-icon
......
......@@ -2,9 +2,7 @@ import Vue from "vue"
import Tooltip from "~/node_modules/bootstrap/js/dist/tooltip"
Vue.directive("tooltip", function (el, binding) {
let tooltip = {}
tooltip = new Tooltip(el, {
let tooltip = new Tooltip(el, {
title: binding.value,
html: true,
trigger: "manual"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment