summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_shared/mixins/tooltip.js
blob: 995c0c985051c15128c7835eb5de25315d0c2ca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
export default {
  mounted() {
    $(this.$refs.tooltip).tooltip();
  },

  updated() {
    $(this.$refs.tooltip).tooltip('fixTitle');
  },

  beforeDestroy() {
    $(this.$refs.tooltip).tooltip('destroy');
  },
};