add tags to doUpdateChannel #168

Merged
jessopb merged 1 commit from channelUpdateTags into master 2019-07-21 22:47:41 +02:00
2 changed files with 15 additions and 1 deletions

9
dist/bundle.es.js vendored
View file

@ -2300,9 +2300,16 @@ function doUpdateChannel(params) {
description: params.description,
website_url: params.website,
email: params.email,
replace: true
replace: true,
tags: []
};
if (params.tags) {
updateParams.tags = params.tags.map(tag => tag.name);
}
// TODO add languages and locations as above
return lbryProxy.channel_update(updateParams).then(result => {
const channelClaim = result.outputs[0];
dispatch({

View file

@ -263,8 +263,15 @@ export function doUpdateChannel(params: any) {
website_url: params.website,
email: params.email,
replace: true,
tags: [],
};
if (params.tags) {
updateParams.tags = params.tags.map(tag => tag.name);
}
// TODO add languages and locations as above
return Lbry.channel_update(updateParams)
.then((result: ChannelUpdateResponse) => {
const channelClaim = result.outputs[0];