mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-12 17:10:54 +00:00
Make sure settings actually work.
This commit is contained in:
parent
0e939e30ee
commit
ef3f18081c
2 changed files with 22 additions and 22 deletions
|
@ -1086,17 +1086,17 @@ FFZ.settings_info.chatter_count = {
|
||||||
help: "Display the current number of users connected to chat beneath the channel.",
|
help: "Display the current number of users connected to chat beneath the channel.",
|
||||||
|
|
||||||
on_update: function(val) {
|
on_update: function(val) {
|
||||||
if ( this._cindex )
|
if ( this._cindex )
|
||||||
this._cindex.ffzUpdateChatters();
|
this._cindex.ffzUpdateMetadata('chatters');
|
||||||
|
|
||||||
if ( ! val || ! this.rooms )
|
if ( ! val || ! this.rooms )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Refresh the data.
|
// Refresh the data.
|
||||||
for(var room_id in this.rooms)
|
for(var room_id in this.rooms)
|
||||||
this.rooms.hasOwnProperty(room_id) && this.rooms[room_id].room && this.rooms[room_id].room.ffzInitChatterCount();
|
this.rooms.hasOwnProperty(room_id) && this.rooms[room_id].room && this.rooms[room_id].room.ffzInitChatterCount();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
FFZ.settings_info.channel_views = {
|
FFZ.settings_info.channel_views = {
|
||||||
|
@ -1147,10 +1147,10 @@ FFZ.settings_info.stream_host_button = {
|
||||||
name: "Host This Channel Button",
|
name: "Host This Channel Button",
|
||||||
help: "Display a button underneath streams that make it easy to host them with your own channel.",
|
help: "Display a button underneath streams that make it easy to host them with your own channel.",
|
||||||
on_update: function(val) {
|
on_update: function(val) {
|
||||||
if ( this._cindex )
|
if ( this._cindex )
|
||||||
this._cindex.ffzUpdateHostButton();
|
this._cindex.ffzUpdateHostButton();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
FFZ.settings_info.stream_uptime = {
|
FFZ.settings_info.stream_uptime = {
|
||||||
|
@ -1171,10 +1171,10 @@ FFZ.settings_info.stream_uptime = {
|
||||||
name: "Stream Uptime",
|
name: "Stream Uptime",
|
||||||
help: 'Display the stream uptime under a channel by the viewer count.',
|
help: 'Display the stream uptime under a channel by the viewer count.',
|
||||||
on_update: function(val) {
|
on_update: function(val) {
|
||||||
if ( this._cindex )
|
if ( this._cindex )
|
||||||
this._cindex.ffzUpdateUptime();
|
this._cindex.ffzUpdateMetadata('uptime');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
FFZ.settings_info.stream_title = {
|
FFZ.settings_info.stream_title = {
|
||||||
|
@ -1187,10 +1187,10 @@ FFZ.settings_info.stream_title = {
|
||||||
name: "Title Links",
|
name: "Title Links",
|
||||||
help: "Make links in stream titles clickable.",
|
help: "Make links in stream titles clickable.",
|
||||||
on_update: function(val) {
|
on_update: function(val) {
|
||||||
if ( this._cindex )
|
if ( this._cindex )
|
||||||
this._cindex.ffzFixTitle();
|
this._cindex.ffzFixTitle();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
FFZ.settings_info.channel_bar_bottom = {
|
FFZ.settings_info.channel_bar_bottom = {
|
||||||
|
|
|
@ -122,7 +122,7 @@ metadata.host = {
|
||||||
|
|
||||||
order: 98,
|
order: 98,
|
||||||
label: function(user, channel_id, hosting_id) {
|
label: function(user, channel_id, hosting_id) {
|
||||||
if ( ! user || user.login === channel_id )
|
if ( ! this.settings.stream_host_button || ! user || user.login === channel_id )
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
return channel_id === hosting_id ? 'Unhost' : 'Host';
|
return channel_id === hosting_id ? 'Unhost' : 'Host';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue