mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-05 18:48:31 +00:00
4.0.0-rc18.1
* Fixed: The new ban and timeout reason context menu not appearing in rooms without chat rules set.
This commit is contained in:
parent
23816fafc9
commit
918a5fbb13
2 changed files with 28 additions and 24 deletions
|
@ -149,7 +149,7 @@ ${typeof x[1] === 'string' ? x[1] : JSON.stringify(x[1], null, 4)}`
|
||||||
FrankerFaceZ.Logger = Logger;
|
FrankerFaceZ.Logger = Logger;
|
||||||
|
|
||||||
const VER = FrankerFaceZ.version_info = {
|
const VER = FrankerFaceZ.version_info = {
|
||||||
major: 4, minor: 0, revision: 0, extra: '-rc18',
|
major: 4, minor: 0, revision: 0, extra: '-rc18.1',
|
||||||
commit: __git_commit__,
|
commit: __git_commit__,
|
||||||
build: __webpack_hash__,
|
build: __webpack_hash__,
|
||||||
toString: () =>
|
toString: () =>
|
||||||
|
|
|
@ -199,6 +199,7 @@ export default class Actions extends Module {
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if ( reasons && reasons.length ) {
|
||||||
for(const reason of reasons) {
|
for(const reason of reasons) {
|
||||||
const text = this.replaceVariables(reason.i18n ? this.i18n.t(reason.i18n, reason.text) : reason.text, data);
|
const text = this.replaceVariables(reason.i18n ? this.i18n.t(reason.i18n, reason.text) : reason.text, data);
|
||||||
|
|
||||||
|
@ -212,8 +213,10 @@ export default class Actions extends Module {
|
||||||
</a>
|
</a>
|
||||||
</li>)
|
</li>)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( reasons && reasons.length && rules && rules.length )
|
if ( rules && rules.length ) {
|
||||||
|
if ( reasons && reasons.length )
|
||||||
reason_elements.push(<div class="tw-mg-y-05 tw-border-b"></div>);
|
reason_elements.push(<div class="tw-mg-y-05 tw-border-b"></div>);
|
||||||
|
|
||||||
for(const rule of rules) {
|
for(const rule of rules) {
|
||||||
|
@ -227,6 +230,7 @@ export default class Actions extends Module {
|
||||||
</a>
|
</a>
|
||||||
</li>);
|
</li>);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let reason_text;
|
let reason_text;
|
||||||
if ( data.definition.reason_text )
|
if ( data.definition.reason_text )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue