Use <once-button> for restarting datasync daemon

This commit is contained in:
Lance Edgar 2019-06-06 15:11:01 -05:00
parent 93a3da2335
commit 0a80e01d0b

View file

@ -7,7 +7,13 @@
% if request.has_perm('datasync.restart'):
${h.form(url('datasync.restart'), name='restart-datasync', class_='autodisable control')}
${h.csrf_token(request)}
% if use_buefy:
<once-button native-type="submit"
text="Restart DataSync">
</once-button>
% else:
${h.submit('submit', "Restart DataSync", data_working_label="Restarting DataSync", class_='button')}
% endif
${h.end_form()}
% endif