From 112fde0f4b394a94370b06a69599e71795ac6cb5 Mon Sep 17 00:00:00 2001 From: SirStendec Date: Mon, 3 Sep 2018 14:32:58 -0400 Subject: [PATCH] 4.0.0-rc12.19 * Fixed: Default in-line Ban action not functioning. --- src/main.js | 2 +- src/modules/chat/actions/index.jsx | 4 ++-- src/modules/chat/actions/types.jsx | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index 5f1bcd1f..39da9433 100644 --- a/src/main.js +++ b/src/main.js @@ -100,7 +100,7 @@ class FrankerFaceZ extends Module { FrankerFaceZ.Logger = Logger; const VER = FrankerFaceZ.version_info = { - major: 4, minor: 0, revision: 0, extra: '-rc12.18', + major: 4, minor: 0, revision: 0, extra: '-rc12.19', commit: __git_commit__, build: __webpack_hash__, toString: () => diff --git a/src/modules/chat/actions/index.jsx b/src/modules/chat/actions/index.jsx index ee21a461..29e12996 100644 --- a/src/modules/chat/actions/index.jsx +++ b/src/modules/chat/actions/index.jsx @@ -34,8 +34,8 @@ export default class Actions extends Module { ), default: [ - {v: {action: 'ban', appearance: {type: 'icon', icon: 'ffz-i-block'}, display: {mod: true, mod_icons: true, deleted: false}}}, - {v: {action: 'unban', appearance: {type: 'icon', icon: 'ffz-i-ok'}, display: {mod: true, mod_icons: true, deleted: true}}}, + {v: {action: 'ban', appearance: {type: 'icon', icon: 'ffz-i-block'}, options: {}, display: {mod: true, mod_icons: true, deleted: false}}}, + {v: {action: 'unban', appearance: {type: 'icon', icon: 'ffz-i-ok'}, options: {}, display: {mod: true, mod_icons: true, deleted: true}}}, {v: {action: 'timeout', appearance: {type: 'icon', icon: 'ffz-i-clock'}, display: {mod: true, mod_icons: true}}}, ], diff --git a/src/modules/chat/actions/types.jsx b/src/modules/chat/actions/types.jsx index cf2c82f8..a4b2622c 100644 --- a/src/modules/chat/actions/types.jsx +++ b/src/modules/chat/actions/types.jsx @@ -125,6 +125,8 @@ export const ban = { } }], + defaults: {}, + required_context: ['room', 'user'], editor: () => import(/* webpackChunkName: 'main-menu' */ './components/edit-ban.vue'),