Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
bugfix: get default status from workflow (#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
bleto authored Jan 17, 2022
1 parent 3c3270d commit 20e7ef6
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export default {
this.removeScopeErrors(this.scope);
this.updateStatus({
workflowId: this.$route.params.workflowId,
scope: this.scope,
onSuccess: this.onUpdateSuccess,
onError: this.onUpdateError,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<InputLabel
:floating="true"
:disabled="true"
label="Status preview" />
:label="$t('@Workflow.workflow.components.WorkflowStatusPreview.label')" />
</InputController>
</template>
</InputSolidStyle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export default {
this.removeScopeErrors(this.scope);
this.createStatus({
workflowId: this.$route.params.workflowId,
scope: this.scope,
onSuccess: this.onCreateSuccess,
onError: this.onCreateError,
Expand All @@ -91,6 +92,7 @@ export default {
this.removeScopeErrors(this.scope);
this.createStatus({
workflowId: this.$route.params.workflowId,
scope: this.scope,
onSuccess: this.onProceedSuccess,
onError: this.onCreateError,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default {
this.removeScopeErrors(this.scope);
this.updateStatus({
workflowId: this.$route.params.workflowId,
scope: this.scope,
onSuccess: this.onUpdateSuccess,
onError: this.onUpdateError,
Expand Down
3 changes: 3 additions & 0 deletions modules/@ergonode/workflow/src/locales/en_GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
"ConditionsSideBar": {
"title": "Conditions"
},
"WorkflowStatusPreview": {
"label": "Status preview"
},
"ConditionsVerticalTab": {
"title": "Conditions"
},
Expand Down
3 changes: 3 additions & 0 deletions modules/@ergonode/workflow/src/locales/pl_PL.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
"ConditionsSideBar": {
"title": "Warunki"
},
"WorkflowStatusPreview": {
"label": "Podgląd statusu"
},
"ConditionsVerticalTab": {
"title": "Warunki"
},
Expand Down
5 changes: 4 additions & 1 deletion modules/@ergonode/workflow/src/store/workflow/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ export default {
},
});
// EXTENDED BEFORE METHOD
console.log('run run ');

const data = await getWorkflow({
$axios: this.app.$axios,
Expand Down Expand Up @@ -187,6 +186,7 @@ export default {
state,
},
{
workflowId,
scope,
onSuccess = () => {},
onError = () => {},
Expand Down Expand Up @@ -227,6 +227,7 @@ export default {
await updateDefaultStatus({
$axios: this.app.$axios,
id,
workflowId,
});
}

Expand Down Expand Up @@ -261,6 +262,7 @@ export default {
state,
rootState,
}, {
workflowId,
scope,
onSuccess = () => {},
onError = () => {},
Expand Down Expand Up @@ -310,6 +312,7 @@ export default {
requests.push(updateDefaultStatus({
$axios: this.app.$axios,
id,
workflowId,
}));
}

Expand Down

0 comments on commit 20e7ef6

Please sign in to comment.