Use once-button for tempmon client restart
This commit is contained in:
parent
f684c38958
commit
63807e71fd
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
<%def name="extra_javascript()">
|
<%def name="extra_javascript()">
|
||||||
${parent.extra_javascript()}
|
${parent.extra_javascript()}
|
||||||
|
% if not use_buefy:
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function() {
|
$(function() {
|
||||||
$('#restart-client').click(function() {
|
$('#restart-client').click(function() {
|
||||||
|
@ -11,6 +12,7 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
% endif
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="object_helpers()">
|
<%def name="object_helpers()">
|
||||||
|
@ -18,7 +20,14 @@
|
||||||
<div class="object-helper">
|
<div class="object-helper">
|
||||||
<h3>Client Tools</h3>
|
<h3>Client Tools</h3>
|
||||||
<div class="object-helper-content">
|
<div class="object-helper-content">
|
||||||
|
% if use_buefy:
|
||||||
|
<once-button tag="a" href="${url('{}.restart'.format(route_prefix), uuid=instance.uuid)}"
|
||||||
|
type="is-primary"
|
||||||
|
text="Restart tempmon-client daemon">
|
||||||
|
</once-button>
|
||||||
|
% else:
|
||||||
<button type="button" id="restart-client">Restart tempmon-client daemon</button>
|
<button type="button" id="restart-client">Restart tempmon-client daemon</button>
|
||||||
|
% endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
% endif
|
% endif
|
||||||
|
|
Loading…
Reference in a new issue