forked from ustaxcourt/ef-cms
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5521 from flexion/4609-message-action-buttons
4609: add message action buttons, empty modals
- Loading branch information
Showing
11 changed files
with
147 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
web-client/src/presenter/sequences/openCompleteMessageModalSequence.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { setShowModalFactoryAction } from '../actions/setShowModalFactoryAction'; | ||
|
||
export const openCompleteMessageModalSequence = [ | ||
setShowModalFactoryAction('CompleteMessageModal'), | ||
]; |
5 changes: 5 additions & 0 deletions
5
web-client/src/presenter/sequences/openForwardMessageModalSequence.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { setShowModalFactoryAction } from '../actions/setShowModalFactoryAction'; | ||
|
||
export const openForwardMessageModalSequence = [ | ||
setShowModalFactoryAction('ForwardMessageModal'), | ||
]; |
5 changes: 5 additions & 0 deletions
5
web-client/src/presenter/sequences/openReplyToMessageModalSequence.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { setShowModalFactoryAction } from '../actions/setShowModalFactoryAction'; | ||
|
||
export const openReplyToMessageModalSequence = [ | ||
setShowModalFactoryAction('ReplyToMessageModal'), | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
web-client/src/views/Messages/CompleteCaseMessageModalDialog.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { ConfirmModal } from '../../ustc-ui/Modal/ConfirmModal'; | ||
import { connect } from '@cerebral/react'; | ||
import React from 'react'; | ||
|
||
export const CompleteCaseMessageModalDialog = connect( | ||
{}, | ||
function CompleteCaseMessageModalDialog() { | ||
return ( | ||
<ConfirmModal | ||
cancelLabel="Cancel" | ||
confirmLabel="Complete" | ||
preventCancelOnBlur={true} | ||
title="Complete Message" | ||
onCancelSequence="clearModalFormSequence" | ||
onConfirmSequence={() => {}} | ||
></ConfirmModal> | ||
); | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
web-client/src/views/Messages/ForwardCaseMessageModalDialog.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { ConfirmModal } from '../../ustc-ui/Modal/ConfirmModal'; | ||
import { connect } from '@cerebral/react'; | ||
import React from 'react'; | ||
|
||
export const ForwardCaseMessageModalDialog = connect( | ||
{}, | ||
function ForwardCaseMessageModalDialog() { | ||
return ( | ||
<ConfirmModal | ||
cancelLabel="Cancel" | ||
confirmLabel="Send" | ||
preventCancelOnBlur={true} | ||
title="Forward Message" | ||
onCancelSequence="clearModalFormSequence" | ||
onConfirmSequence={() => {}} | ||
></ConfirmModal> | ||
); | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
web-client/src/views/Messages/ReplyToCaseMessageModalDialog.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { ConfirmModal } from '../../ustc-ui/Modal/ConfirmModal'; | ||
import { connect } from '@cerebral/react'; | ||
import React from 'react'; | ||
|
||
export const ReplyToCaseMessageModalDialog = connect( | ||
{}, | ||
function ReplyToCaseMessageModalDialog() { | ||
return ( | ||
<ConfirmModal | ||
cancelLabel="Cancel" | ||
confirmLabel="Send" | ||
preventCancelOnBlur={true} | ||
title="Reply to Message" | ||
onCancelSequence="clearModalFormSequence" | ||
onConfirmSequence={() => {}} | ||
></ConfirmModal> | ||
); | ||
}, | ||
); |