Skip to content

Commit

Permalink
Merge pull request AOT-Technologies#2350 from shuhaib-aot/Bugfix/FWF-…
Browse files Browse the repository at this point in the history
…3913-disable-revert-button

Disabled revert button on Live
  • Loading branch information
arun-s-aot authored Nov 18, 2024
2 parents e37788a + 9c4a581 commit c8cfa4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion forms-flow-web/src/components/Form/EditForm/FlowEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ const FlowEdit = forwardRef(({ isPublished = false, CategoryType,form }, ref) =>
categoryType={CategoryType.WORKFLOW}
revertBtnAction={fetchHistoryData}
historyCount={historiesData?.totalCount || 0}
currentVersionId={processData.id}
disableAllRevertButton={processData.status === "Published"}
/>
{showTaskVarModal && (
<TaskVariableModal
Expand Down
1 change: 1 addition & 0 deletions forms-flow-web/src/components/Form/EditForm/FormEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,7 @@ const EditComponent = () => {
categoryType={CategoryType.FORM}
revertBtnAction={revertFormBtnAction}
historyCount={formHistoryData.totalCount}
disableAllRevertButton={isPublished}
/>
{renderDeleteModal()}
</div>
Expand Down
1 change: 1 addition & 0 deletions forms-flow-web/src/components/Modeler/ProcessCreateEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ const ProcessCreateEdit = ({ type }) => {
revertBtnAction={fetchHistoryData}
historyCount={historiesData?.totalCount || 0}
currentVersionId={processData.id}
disableAllRevertButton={isPublished}
/>
</div>
);
Expand Down

0 comments on commit c8cfa4a

Please sign in to comment.