-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(FEC-9333): when playing a playlist and closing the countdown wind…
…ow, the next entry starts automatically (#429) move the `canceled` to own reduced since `this.state` is reset when switching to ad
- Loading branch information
Showing
4 changed files
with
47 additions
and
17 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
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,28 @@ | ||
//@flow | ||
export const types = { | ||
UPDATE_PLAYLIST_COUNTDOWN_CANCELED: 'playlist-countdown/UPDATE_PLAYLIST_COUNTDOWN_CANCELED' | ||
}; | ||
|
||
export const initialState = { | ||
countdownCanceled: false | ||
}; | ||
|
||
export default (state: Object = initialState, action: Object) => { | ||
switch (action.type) { | ||
case types.UPDATE_PLAYLIST_COUNTDOWN_CANCELED: | ||
return { | ||
...state, | ||
countdownCanceled: action.countdownCanceled | ||
}; | ||
|
||
default: | ||
return state; | ||
} | ||
}; | ||
|
||
export const actions = { | ||
updatePlaylistCountdownCanceled: (countdownCanceled: boolean) => ({ | ||
type: types.UPDATE_PLAYLIST_COUNTDOWN_CANCELED, | ||
countdownCanceled | ||
}) | ||
}; |
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