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 @@ ...@@ -14,8 +14,8 @@
class="btn btn-info" class="btn btn-info"
v-tooltip=" v-tooltip="
$favourites.list.includes(hash.uid) $favourites.list.includes(hash.uid)
? $t('favoris.supprime') ? $t('favoris.enregistre')
: $t('favoris.enregistre') : $t('favoris.supprime')
" "
@click="$favourites.toggleFavourite(hash.uid, $event)"> @click="$favourites.toggleFavourite(hash.uid, $event)">
<outline-user-add-icon <outline-user-add-icon
......
...@@ -2,9 +2,7 @@ import Vue from "vue" ...@@ -2,9 +2,7 @@ import Vue from "vue"
import Tooltip from "~/node_modules/bootstrap/js/dist/tooltip" import Tooltip from "~/node_modules/bootstrap/js/dist/tooltip"
Vue.directive("tooltip", function (el, binding) { Vue.directive("tooltip", function (el, binding) {
let tooltip = {} let tooltip = new Tooltip(el, {
tooltip = new Tooltip(el, {
title: binding.value, title: binding.value,
html: true, html: true,
trigger: "manual" 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