Skip to content

Commit

Permalink
add a refresh button, remove the language tag from the branded conten…
Browse files Browse the repository at this point in the history
…t link
  • Loading branch information
BarryCarlyon committed Jul 19, 2023
1 parent dba419b commit 38d1851
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/channel_dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ <h2>Channel Information</h2>
<a href="https://help.twitch.tv/s/article/video-on-demand#reruns">Learn More</a>
</td>
</tr>

<tr>
<th>CCLs - Content Classification Labels</th>
<td>
Expand All @@ -132,7 +132,7 @@ <h2>Channel Information</h2>
<th>Branded Content</th>
<td>
<input type="checkbox" name="channel_branded" id="channel_branded"/>
<a href="https://help.twitch.tv/s/article/branded-content-policy?language=en_US">Learn More</a>
<a href="https://help.twitch.tv/s/article/branded-content-policy">Learn More</a>
</td>
</tr>
</table>
Expand Down Expand Up @@ -165,6 +165,7 @@ <h2>Extensions</h2>
</div>
<div style="width:100%">
<input type="submit" id="update_channel" value="Update Channel" />
<input type="button" id="refresh_channel" value="Refresh Channel" />
</div>
</fieldset>
</form>
Expand Down Expand Up @@ -223,7 +224,7 @@ <h2>Extensions</h2>
state('Failed to get user. Non 200');
return;
}

let userData = {}
try {
userData = await userResp.json();
Expand Down Expand Up @@ -480,6 +481,7 @@ <h2>Extensions</h2>
state('Got Everything!');
dashboard.classList.remove('disableit');
}
refresh_channel.addEventListener('click', updateData);

dashboard.addEventListener('submit', async (e) => {
e.preventDefault();
Expand Down

0 comments on commit 38d1851

Please sign in to comment.