mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-07 11:38:32 +00:00
3.5.249. Add option to hide the Bits Tag display on streams such as EVO.
This commit is contained in:
parent
25eadeb89a
commit
0482887343
16 changed files with 72 additions and 81 deletions
|
@ -14,13 +14,6 @@ FFZ.settings_info.bits_animated = {
|
|||
category: "Chat Appearance",
|
||||
no_bttv: true,
|
||||
|
||||
visible: function() {
|
||||
var globals = utils.ember_lookup('service:globals'),
|
||||
user = this.get_user();
|
||||
|
||||
return (globals && globals.get('isBitsEnabled')) || (user && user.is_staff);
|
||||
},
|
||||
|
||||
name: "Bits Animation",
|
||||
help: "Display bits with animation.",
|
||||
|
||||
|
@ -28,12 +21,28 @@ FFZ.settings_info.bits_animated = {
|
|||
}
|
||||
|
||||
|
||||
FFZ.settings_info.bits_tags_container = {
|
||||
type: "boolean",
|
||||
value: true,
|
||||
|
||||
category: "Chat Appearance",
|
||||
no_bttv: true,
|
||||
|
||||
name: "Bits Tag Display",
|
||||
help: "Display competitive bits tags at the top of chats that have it enabled.",
|
||||
|
||||
on_update: utils.toggle_cls('ffz-show-bits-tags')
|
||||
}
|
||||
|
||||
|
||||
|
||||
// --------------------
|
||||
// Initialization
|
||||
// --------------------
|
||||
|
||||
FFZ.prototype.setup_bits = function() {
|
||||
utils.toggle_cls('ffz-animate-bits')(this.settings.bits_animated);
|
||||
utils.toggle_cls('ffz-show-bits-tags')(this.settings.bits_tags_container);
|
||||
|
||||
var f = this,
|
||||
Service = utils.ember_lookup('service:bits-rendering-config');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue