Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 25 additions & 5 deletions Diagnostics/ExTRA/ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
#scenariosDiv {
column-count: 5;
}

.btn {
margin-top: 15px;
}
</style>
</head>

Expand All @@ -51,11 +55,15 @@
<input id="tagFilter" onchange="tagFilterChanged(event)" onkeyup="tagFilterChanged(event)" />
<label for="tagFilter" class="active">Tag Filter</label>
</div>
<label for="showOnlySelectedCheckbox" class="col s3">
<input id="showOnlySelectedCheckbox" class="filled-in" type="checkbox"
onchange="updateVisibility(event)" />
<span>Only Show Selected</span>
</label>
<div class="col s3">
<label for="showOnlySelectedCheckbox">
<input id="showOnlySelectedCheckbox" class="filled-in" type="checkbox"
onchange="updateVisibility(event)" />
<span>Only Show Selected</span>
</label>
<button class="btn waves-effect waves-light" onclick="clearAllSelections()">Clear All
Selections</button>
</div>
<button class="btn waves-effect waves-light col s3" onclick="save()">Save</button>
</div>

Expand Down Expand Up @@ -84,6 +92,18 @@
updateVisibility();
}

function clearAllSelections(event) {
selectionTable.forEach(category => {
category.tags.forEach(tag => {
setSelectedOnTag(tag, false, false);
});

checkCategorySelectionState(category);
});

updateVisibility();
}

async function save() {
const response = await fetch(window.location.href, {
method: 'POST',
Expand Down