1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-04 01:58:31 +00:00
* Added: Room Actions can now be filtered based on the chat being in Followers-Only Mode or R9K Mode.
* Changed: Custom tool-tips for actions now support variables. Time-out and ban reasons do as well. Text labels do not.
* Fixed: Chat messages from Twitch Extensions not displaying.
This commit is contained in:
SirStendec 2019-08-27 16:18:12 -04:00
parent d150b9720d
commit 6cb585d7d4
9 changed files with 154 additions and 9 deletions

View file

@ -9,7 +9,7 @@
</div>
<div class="tw-pd-b-1 tw-border-b tw-mg-b-1">
<div class="tw-flex tw-align-items-center ffz--inline">
<div class="tw-flex tw-flex-wrap tw-align-items-center ffz--inline">
{{ t('setting.actions.preview', 'Preview:') }}
<div class="tw-pd-x-1 tw-checkbox">
@ -102,6 +102,36 @@
</label>
</div>
<div v-if="has_mode" class="tw-pd-x-1 tw-checkbox">
<input
id="with_followers"
ref="with_followers"
:checked="with_followers"
type="checkbox"
class="tw-checkbox__input"
@change="onPreview"
>
<label for="with_followers" class="tw-checkbox__label">
{{ t('setting.actions.preview.followers', 'Followers-Only') }}
</label>
</div>
<div v-if="has_mode" class="tw-pd-x-1 tw-checkbox">
<input
id="with_r9k"
ref="with_r9k"
:checked="with_r9k"
type="checkbox"
class="tw-checkbox__input"
@change="onPreview"
>
<label for="with_r9k" class="tw-checkbox__label">
{{ t('setting.actions.preview.r9k', 'R9k Mode') }}
</label>
</div>
<div class="tw-pd-x-1 tw-checkbox">
<input
id="show_all"
@ -291,6 +321,8 @@ export default {
with_emote: false,
with_subs: false,
with_slow: false,
with_followers: false,
with_r9k: false,
is_staff: false,
is_deleted: false,
@ -543,6 +575,8 @@ export default {
this.with_emote = this.has_mode && this.$refs.with_emote.checked;
this.with_subs = this.has_mode && this.$refs.with_subs.checked;
this.with_slow = this.has_mode && this.$refs.with_slow.checked;
this.with_followers = this.has_mode && this.$refs.with_followers.checked;
this.with_r9k = this.has_mode && this.$refs.with_r9k.checked;
},
displayAction(action) {
@ -577,6 +611,12 @@ export default {
if ( disp.subsMode != null && disp.subsMode !== this.with_subs )
return false;
if ( disp.r9kMode != null && disp.r9kMode !== this.with_r9k )
return false;
if ( disp.followersOnly != null && disp.followersOnly !== this.with_followers )
return false;
}
return true;