save optimize check state to allow page navigation #295
2 changed files with 15 additions and 2 deletions
7
dist/bundle.es.js
vendored
7
dist/bundle.es.js
vendored
|
@ -5492,6 +5492,9 @@ function _objectWithoutProperties$3(obj, keys) { var target = {}; for (var i in
|
|||
const defaultState$6 = {
|
||||
editingURI: undefined,
|
||||
filePath: undefined,
|
||||
fileDur: 0,
|
||||
fileSize: 0,
|
||||
fileVid: false,
|
||||
contentIsFree: true,
|
||||
fee: {
|
||||
amount: 1,
|
||||
|
@ -5525,7 +5528,9 @@ const publishReducer = handleActions({
|
|||
const { data } = action;
|
||||
return _extends$e({}, state, data);
|
||||
},
|
||||
[CLEAR_PUBLISH]: state => _extends$e({}, defaultState$6, { bid: state.bid, optimize: state.optimize
|
||||
[CLEAR_PUBLISH]: state => _extends$e({}, defaultState$6, {
|
||||
bid: state.bid,
|
||||
optimize: state.optimize
|
||||
}),
|
||||
[PUBLISH_START]: state => _extends$e({}, state, {
|
||||
publishing: true,
|
||||
|
|
|
@ -9,6 +9,9 @@ type PublishState = {
|
|||
editingURI: ?string,
|
||||
filePath: ?string,
|
||||
contentIsFree: boolean,
|
||||
fileDur: number,
|
||||
fileSize: number,
|
||||
fileVid: boolean,
|
||||
fee: {
|
||||
amount: number,
|
||||
currency: string,
|
||||
|
@ -34,6 +37,9 @@ type PublishState = {
|
|||
const defaultState: PublishState = {
|
||||
editingURI: undefined,
|
||||
filePath: undefined,
|
||||
fileDur: 0,
|
||||
fileSize: 0,
|
||||
fileVid: false,
|
||||
contentIsFree: true,
|
||||
fee: {
|
||||
amount: 1,
|
||||
|
@ -72,7 +78,9 @@ export const publishReducer = handleActions(
|
|||
};
|
||||
},
|
||||
[ACTIONS.CLEAR_PUBLISH]: (state: PublishState): PublishState => ({
|
||||
...defaultState, bid: state.bid, optimize: state.optimize,
|
||||
...defaultState,
|
||||
bid: state.bid,
|
||||
optimize: state.optimize,
|
||||
}),
|
||||
[ACTIONS.PUBLISH_START]: (state: PublishState): PublishState => ({
|
||||
...state,
|
||||
|
|
Loading…
Add table
Reference in a new issue