Make new_channel call, populate channel list
This commit is contained in:
parent
41b3c58d41
commit
8839003fca
2 changed files with 7 additions and 5 deletions
|
@ -59,11 +59,11 @@ class LBRY_Daemon
|
|||
'channel_new',
|
||||
array(
|
||||
'channel_name' => $channel_name,
|
||||
'amount' => $bid_amount
|
||||
'amount' => floatval($bid_amount)
|
||||
)
|
||||
);
|
||||
error_log($result);
|
||||
return null;
|
||||
return json_decode($result)->result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,9 +20,11 @@ $channel_list = $LBRY->daemon->channel_list();
|
|||
|
||||
<h2>Your Publishable Channels</h2>
|
||||
<?php if ($channel_list): ?>
|
||||
<?php foreach ($channel as $key => $value): ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
<ul class="lbry-channel-list">
|
||||
<?php foreach ($channel_list as $channel): ?>
|
||||
<li><?= $channel->name ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<p>Looks like you haven't added any channels yet, feel free to do so below:</p>
|
||||
<?php endif; ?>
|
||||
|
|
Loading…
Reference in a new issue