Fix "refresh results" for batches, in Buefy theme
This commit is contained in:
parent
e0d1e39824
commit
dc1f613bc2
|
@ -81,10 +81,15 @@
|
||||||
% if master.results_refreshable and master.has_perm('refresh'):
|
% if master.results_refreshable and master.has_perm('refresh'):
|
||||||
% if use_buefy:
|
% if use_buefy:
|
||||||
<b-button type="is-primary"
|
<b-button type="is-primary"
|
||||||
disabled
|
:disabled="refreshResultsButtonDisabled"
|
||||||
title="TODO: need to implement this for new theme">
|
icon-pack="fas"
|
||||||
Refresh Results
|
icon-left="fas fa-redo"
|
||||||
|
@click="refreshResults()">
|
||||||
|
{{ refreshResultsButtonText }}
|
||||||
</b-button>
|
</b-button>
|
||||||
|
${h.form(url('{}.refresh_results'.format(route_prefix)), ref='refreshResultsForm')}
|
||||||
|
${h.csrf_token(request)}
|
||||||
|
${h.end_form()}
|
||||||
% else:
|
% else:
|
||||||
<button type="button" id="refresh-results-button">
|
<button type="button" id="refresh-results-button">
|
||||||
Refresh Results
|
Refresh Results
|
||||||
|
@ -148,6 +153,15 @@
|
||||||
% if master.results_executable and master.has_perm('execute_multiple'):
|
% if master.results_executable and master.has_perm('execute_multiple'):
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
TailboneGridData.refreshResultsButtonText = "Refresh Results"
|
||||||
|
TailboneGridData.refreshResultsButtonDisabled = false
|
||||||
|
|
||||||
|
TailboneGrid.methods.refreshResults = function() {
|
||||||
|
this.refreshResultsButtonDisabled = true
|
||||||
|
this.refreshResultsButtonText = "Working, please wait..."
|
||||||
|
this.$refs.refreshResultsForm.submit()
|
||||||
|
}
|
||||||
|
|
||||||
${execute_form.component_studly}.methods.submit = function() {
|
${execute_form.component_studly}.methods.submit = function() {
|
||||||
this.$refs.actualExecuteForm.submit()
|
this.$refs.actualExecuteForm.submit()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue