In this PR: - Allow the `<ConfirmationModal />` to take additional buttons to display between the cancel and the confirm buttons. - Create a modal that's displayed when the user tries wants to use a workflow version as draft while a draft version already exists. The displayed modal contains a link to the current draft version and a button to confirm the overriding of the current draft version. A demo: https://github.com/user-attachments/assets/6349f418-1b11-45b3-9f5e-061ca74c2966 Closes twentyhq/private-issues#114
8 lines
221 B
TypeScript
8 lines
221 B
TypeScript
import { createState } from 'twenty-ui';
|
|
|
|
export const openOverrideWorkflowDraftConfirmationModalState =
|
|
createState<boolean>({
|
|
key: 'openOverrideWorkflowDraftConfirmationModalState',
|
|
defaultValue: false,
|
|
});
|