Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .changeset/tame-melons-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@equinor/mad-dfw": patch
---

Added loading prop to the buttons in the `WorkOrderCell` component
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const WorkOrderCell = ({
title="Start job"
variant="outlined"
disabled={startJobButton.disabled}
loading={startJobButton.loading}
onPress={startJobButton.onPress}
/>
)}
Expand All @@ -87,14 +88,16 @@ export const WorkOrderCell = ({
title="Ready for operation"
variant="outlined"
disabled={readyForOperationButton.disabled}
onPress={readyForOperationButton?.onPress}
loading={readyForOperationButton.loading}
onPress={readyForOperationButton.onPress}
/>
)}
{tecoButton?.visible && (
<Button
title="Technical complete"
variant="outlined"
disabled={tecoButton.disabled}
loading={tecoButton.loading}
onPress={tecoButton.onPress}
/>
)}
Expand Down
1 change: 1 addition & 0 deletions packages/dfw/src/dfwcomponents/WorkOrderCell/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export type WorkOrder = {

type ButtonOptions = {
disabled?: boolean;
loading?: boolean;
visible: boolean;
onPress: () => void;
};
Expand Down
Loading