Add list selection on antenna setting page
This commit is contained in:
parent
d23ecd1dff
commit
f393aa2a85
3 changed files with 62 additions and 27 deletions
|
@ -151,10 +151,10 @@ export const createAntennaFail = error => ({
|
|||
error,
|
||||
});
|
||||
|
||||
export const updateAntenna = (id, title, shouldReset, stl, with_media_only, ignore_reblog) => (dispatch, getState) => {
|
||||
export const updateAntenna = (id, title, shouldReset, list_id, stl, with_media_only, ignore_reblog) => (dispatch, getState) => {
|
||||
dispatch(updateAntennaRequest(id));
|
||||
|
||||
api(getState).put(`/api/v1/antennas/${id}`, { title, stl, with_media_only, ignore_reblog }).then(({ data }) => {
|
||||
api(getState).put(`/api/v1/antennas/${id}`, { title, list_id, stl, with_media_only, ignore_reblog }).then(({ data }) => {
|
||||
dispatch(updateAntennaSuccess(data));
|
||||
|
||||
if (shouldReset) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue