Commit c99d7d33 authored by Gabriel Mazetto's avatar Gabriel Mazetto

🔨Fix tooltip in Geo Info button

parent 7a50403c
...@@ -42,9 +42,12 @@ ...@@ -42,9 +42,12 @@
}); });
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
gl.GeoCloneDialog = new Vue({ const geoClone = document.getElementById('geo_clone');
el: '#geo_clone', if (geoClone) {
data: Object.assign({}, document.getElementById('geo_clone').dataset), gl.GeoCloneDialog = new Vue({
}); el: '#geo_clone',
data: Object.assign({}, geoClone.dataset),
});
}
}); });
})(window.gl || (window.gl = {})); })(window.gl || (window.gl = {}));
...@@ -75,10 +75,10 @@ module ButtonHelper ...@@ -75,10 +75,10 @@ module ButtonHelper
end end
def geo_button(modal_target: nil) def geo_button(modal_target: nil)
data = { toggle: 'tooltip', placement: 'bottom', container: 'body', toggle: 'modal', target: modal_target} data = { placement: 'bottom', container: 'body', toggle: 'modal', target: modal_target }
content_tag :button, content_tag :button,
icon('globe'), icon('globe'),
class: 'btn btn-geo', class: 'btn btn-geo has-tooltip',
data: data, data: data,
type: :button, type: :button,
title: 'See Geo-specific instructions' title: 'See Geo-specific instructions'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment