Skip to content

Commit

Permalink
Updated to use open workflow redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorn01 committed Jan 18, 2024
1 parent 15e37f3 commit f4feb42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions coral/media/js/views/components/plugins/view-enforcements.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,11 @@ define([
}
};

this.redirectUrl = ko.observable();

this.openFlagged = (resourceId) => {
let url = arches.urls.plugin(
`edit-workflow?workflow-slug=process-flagged-enforcement-workflow&resource-id=${resourceId}`
`open-workflow?workflow-slug=respond-to-enforcement-workflow&resource-id=${resourceId}`
);
this.redirectUrl(url);
window.location.href = url;
};

this.init = async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ <h3 id="f1-name" class="panel-title library-card-panel-title">
class="add-function-button btn btn-primary btn-labeled fa fa-link"
data-bind="click: () => {
openFlagged(consultation.resourceinstanceid)
window.location.href = redirectUrl();
} "
>
<span>Open</span>
Expand Down

0 comments on commit f4feb42

Please sign in to comment.