forked from mattermost/mattermost-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MM-9915 - Transition showPreview away from being mutable state on the… (
mattermost#4651) * MM-9915 - Transition showPreview away from being mutable state on the textbox component * fix variable naming * refactor: create textbox redux flow * fix errors after merge * fix bug on edit channel header page with updatePreview * fix bugs when textbox doesn't reset on channel change and on rhs open/close * move actions triggers to appropriate functions * fix current issues Co-authored-by: mattermod <[email protected]>
- Loading branch information
Showing
19 changed files
with
316 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. | ||
// See LICENSE.txt for license information. | ||
import {ActionTypes} from '../../utils/constants'; | ||
|
||
export function setShowPreviewOnCreateComment(showPreview) { | ||
return { | ||
type: ActionTypes.SET_SHOW_PREVIEW_ON_CREATE_COMMENT, | ||
showPreview, | ||
}; | ||
} | ||
|
||
export function setShowPreviewOnCreatePost(showPreview) { | ||
return { | ||
type: ActionTypes.SET_SHOW_PREVIEW_ON_CREATE_POST, | ||
showPreview, | ||
}; | ||
} | ||
|
||
export function setShowPreviewOnEditChannelHeaderModal(showPreview) { | ||
return { | ||
type: ActionTypes.SET_SHOW_PREVIEW_ON_EDIT_CHANNEL_HEADER_MODAL, | ||
showPreview, | ||
}; | ||
} | ||
|
||
export function setShowPreviewOnEditPostModal(showPreview) { | ||
return { | ||
type: ActionTypes.SET_SHOW_PREVIEW_ON_EDIT_POST_MODAL, | ||
showPreview, | ||
}; | ||
} |
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
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
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
Oops, something went wrong.