Skip to content

Commit 952064f

Browse files
committed
HARMONY-1998: Integrate disallowMessageCategoryChecked
1 parent 7061500 commit 952064f

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

services/harmony/app/frontends/workflow-ui.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ export async function getJob(
437437
updatedAtChecked: dateKind == 'updatedAt' ? 'checked' : '',
438438
createdAtChecked: dateKind != 'updatedAt' ? 'checked' : '',
439439
disallowStatusChecked: requestQuery.disallowstatus === 'on' ? 'checked' : '',
440+
disallowMessageCategoryChecked: requestQuery.disallowmessagecategory === 'on' ? 'checked' : '',
440441
selectedFilters: originalValues,
441442
version,
442443
isAdminRoute: req.context.isAdminAccess,

services/harmony/app/views/workflow-ui/job/index.mustache.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@
6363
negate statuses
6464
</label>
6565
</div>
66+
<div class="form-check">
67+
<input type="checkbox" class="form-check-input" name="disallowMessageCategory" {{disallowMessageCategoryChecked}}>
68+
<label class="form-check-label" for="disallowMessageCategory">
69+
negate message categories
70+
</label>
71+
</div>
6672
<div class="input-group mt-2">
6773
<span class="input-group-text">page size</span>
6874
<input name="limit" type="number" class="form-control" value="{{limit}}">

services/harmony/public/js/workflow-ui/job/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ async function init() {
1414
});
1515
params.tableFilter = document.getElementsByName('tableFilter')[0].getAttribute('data-value');
1616
params.disallowStatus = document.getElementsByName('disallowStatus')[0].checked ? 'on' : '';
17+
params.disallowMessageCategory = document.getElementsByName('disallowMessageCategory')[0].checked ? 'on' : '';
1718
params.dateKind = document.getElementById('dateKindUpdated').checked ? 'updatedAt' : 'createdAt';
1819

1920
// kick off job state change links logic if this user is allowed to change the job state

services/harmony/public/js/workflow-ui/job/work-items-table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import PubSub from '../../pub-sub.js';
3636
*/
3737
async function load(params, checkJobStatus) {
3838
let tableUrl = `./${params.jobID}/work-items?page=${params.currentPage}&limit=${params.limit}&checkJobStatus=${checkJobStatus}`;
39-
tableUrl += `&tableFilter=${encodeURIComponent(params.tableFilter)}&disallowStatus=${params.disallowStatus}`;
39+
tableUrl += `&tableFilter=${encodeURIComponent(params.tableFilter)}&disallowStatus=${params.disallowStatus}&disallowMessageCategory=${params.disallowMessageCategory}`;
4040
tableUrl += `&fromDateTime=${encodeURIComponent(params.fromDateTime)}&toDateTime=${encodeURIComponent(params.toDateTime)}`;
4141
tableUrl += `&tzOffsetMinutes=${params.tzOffsetMinutes}&dateKind=${params.dateKind}`;
4242
const res = await fetch(tableUrl);

0 commit comments

Comments
 (0)