Make new_channel call, populate channel list

This commit is contained in:
Paul Kirby 2018-10-04 19:43:19 -05:00
parent 41b3c58d41
commit 8839003fca
2 changed files with 7 additions and 5 deletions

View file

@ -59,11 +59,11 @@ class LBRY_Daemon
'channel_new', 'channel_new',
array( array(
'channel_name' => $channel_name, 'channel_name' => $channel_name,
'amount' => $bid_amount 'amount' => floatval($bid_amount)
) )
); );
error_log($result); error_log($result);
return null; return json_decode($result)->result;
} }
/** /**

View file

@ -20,9 +20,11 @@ $channel_list = $LBRY->daemon->channel_list();
<h2>Your Publishable Channels</h2> <h2>Your Publishable Channels</h2>
<?php if ($channel_list): ?> <?php if ($channel_list): ?>
<?php foreach ($channel as $key => $value): ?> <ul class="lbry-channel-list">
<?php foreach ($channel_list as $channel): ?>
<?php endforeach; ?> <li><?= $channel->name ?></li>
<?php endforeach; ?>
</ul>
<?php else: ?> <?php else: ?>
<p>Looks like you haven't added any channels yet, feel free to do so below:</p> <p>Looks like you haven't added any channels yet, feel free to do so below:</p>
<?php endif; ?> <?php endif; ?>