mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-11 13:07:20 +00:00
Add case icons. Clean up !cases. Allow customizing case colors and icons.
This commit is contained in:
parent
3a27eb64a9
commit
425f6e6674
24 changed files with 138 additions and 22 deletions
8
backend/src/plugins/Cases/functions/getCaseIcon.ts
Normal file
8
backend/src/plugins/Cases/functions/getCaseIcon.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { PluginData } from "knub";
|
||||
import { CasesPluginType } from "../types";
|
||||
import { CaseTypes, CaseTypeToName } from "../../../data/CaseTypes";
|
||||
import { caseIcons } from "../caseIcons";
|
||||
|
||||
export function getCaseIcon(pluginData: PluginData<CasesPluginType>, caseType: CaseTypes) {
|
||||
return pluginData.config.get().case_icons?.[CaseTypeToName[caseType]] ?? caseIcons[caseType];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue