Commit c99d7d33 authored by Gabriel Mazetto's avatar Gabriel Mazetto

🔨Fix tooltip in Geo Info button

parent 7a50403c
......@@ -42,9 +42,12 @@
});
document.addEventListener('DOMContentLoaded', () => {
const geoClone = document.getElementById('geo_clone');
if (geoClone) {
gl.GeoCloneDialog = new Vue({
el: '#geo_clone',
data: Object.assign({}, document.getElementById('geo_clone').dataset),
data: Object.assign({}, geoClone.dataset),
});
}
});
})(window.gl || (window.gl = {}));
......@@ -75,10 +75,10 @@ module ButtonHelper
end
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,
icon('globe'),
class: 'btn btn-geo',
class: 'btn btn-geo has-tooltip',
data: data,
type: :button,
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