Add channel hover text

Fixes https://codeberg.org/MelodyChat/Fermi/issues/437
This commit is contained in:
Mathium05
2026-08-19 22:02:14 -05:00
parent 4f393e6a49
commit 573c4a2a6b
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -37,6 +37,7 @@ import {Command} from "./interactions/commands.js";
import {Tag} from "./tag.js";
import {CDNParams} from "./utils/cdnParams.js";
import {TypeBox} from "./typeBox.js";
import {Hover} from "./hover.js";
class Channel extends SnowFlake {
editing!: Message | null;
@@ -1076,6 +1077,8 @@ class Channel extends SnowFlake {
const addchannel = document.createElement("span");
addchannel.classList.add("addchannel", "svgicon", "svg-plus");
caps.appendChild(addchannel);
const h = new Hover(I18n.channel.addChannel(), {side: "right", weak: true});
h.addEvent(addchannel);
addchannel.onclick = (_) => {
this.guild.createchannels(this.createChannel.bind(this));
};
+2 -1
View File
@@ -169,7 +169,8 @@
"voice": "Voice",
"deleteThread":"Delete thread",
"hideThreads":"Hide after inactivity",
"forum":"Forum"
"forum":"Forum",
"addChannel":"Add channel"
},
"threads":{
"leave":"Leave thread",