Merge commit 'fac734b6a8
' into kb_migration
This commit is contained in:
commit
5a661415e2
22 changed files with 121 additions and 14 deletions
|
@ -51,6 +51,7 @@ export const COMPOSE_UNMOUNT = 'COMPOSE_UNMOUNT';
|
|||
export const COMPOSE_SENSITIVITY_CHANGE = 'COMPOSE_SENSITIVITY_CHANGE';
|
||||
export const COMPOSE_SPOILERNESS_CHANGE = 'COMPOSE_SPOILERNESS_CHANGE';
|
||||
export const COMPOSE_SPOILER_TEXT_CHANGE = 'COMPOSE_SPOILER_TEXT_CHANGE';
|
||||
export const COMPOSE_MARKDOWN_CHANGE = 'COMPOSE_MARKDOWN_CHANGE';
|
||||
export const COMPOSE_VISIBILITY_CHANGE = 'COMPOSE_VISIBILITY_CHANGE';
|
||||
export const COMPOSE_SEARCHABILITY_CHANGE= 'COMPOSE_SEARCHABILITY_CHANGE';
|
||||
export const COMPOSE_COMPOSING_CHANGE = 'COMPOSE_COMPOSING_CHANGE';
|
||||
|
@ -191,6 +192,7 @@ export function submitCompose(routerHistory) {
|
|||
media_attributes,
|
||||
sensitive: getState().getIn(['compose', 'sensitive']),
|
||||
spoiler_text: getState().getIn(['compose', 'spoiler']) ? getState().getIn(['compose', 'spoiler_text'], '') : '',
|
||||
markdown: getState().getIn(['compose', 'markdown']),
|
||||
visibility: getState().getIn(['compose', 'privacy']),
|
||||
searchability: getState().getIn(['compose', 'searchability']),
|
||||
poll: getState().getIn(['compose', 'poll'], null),
|
||||
|
@ -724,6 +726,12 @@ export function changeComposeSpoilerText(text) {
|
|||
};
|
||||
}
|
||||
|
||||
export function changeComposeMarkdown() {
|
||||
return {
|
||||
type: COMPOSE_MARKDOWN_CHANGE,
|
||||
};
|
||||
}
|
||||
|
||||
export function changeComposeVisibility(value) {
|
||||
return {
|
||||
type: COMPOSE_VISIBILITY_CHANGE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue