Add 'refresh' button for part parameter table (#3329)

* Add 'refresh' button for part parameter table

* Override default URL behaviour for unit test

(cherry picked from commit 2c12a69529)
This commit is contained in:
Oliver 2022-07-15 11:55:39 +10:00 committed by GitHub
parent 0e157950dc
commit 2635327c51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -206,6 +206,12 @@
<h4>{% trans "Part Parameters" %}</h4>
</div>
<div class='panel-content'>
<div id='param-button-toolbar'>
<div class='btn-group' role='group'>
{% include "filter_list.html" with id="parameters" %}
</div>
</div>
<table class='table table-striped table-condensed' data-toolbar='#param-button-toolbar' id='parametric-part-table'>
</table>
</div>

View File

@ -1198,6 +1198,8 @@ function loadRelatedPartsTable(table, part_id, options={}) {
*/
function loadParametricPartTable(table, options={}) {
setupFilterList('parameters', $(table), '#filter-list-parameters');
var columns = [
{
field: 'name',