Admin persistence changes (#5086)

This commit is contained in:
Joseph Insalaco 2024-08-16 22:31:57 -04:00 committed by GitHub
parent 090a48515c
commit b111f0921c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 148 additions and 10 deletions

View file

@ -131,6 +131,12 @@ export const Actions = {
resetPasswordSuccess: () => ({
type: Types.RESET_PASSWORD_SUCCESS,
}),
adjustMod: (userName, shouldBeMod, shouldBeJudge) => ({
type: Types.ADJUST_MOD,
userName,
shouldBeMod,
shouldBeJudge,
}),
reloadConfig: () => ({
type: Types.RELOAD_CONFIG,
}),
@ -182,4 +188,26 @@ export const Actions = {
list,
userName,
}),
banFromServer: (userName) => ({
type: Types.BAN_FROM_SERVER,
userName,
}),
banHistory: (userName, banHistory) => ({
type: Types.BAN_HISTORY,
userName,
banHistory,
}),
warnHistory: (userName, warnHistory) => ({
type: Types.WARN_HISTORY,
userName,
warnHistory,
}),
warnListOptions: (warnList) => ({
type: Types.WARN_LIST_OPTIONS,
warnList,
}),
warnUser: (userName) => ({
type: Types.WARN_USER,
userName,
}),
}