mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-06 20:48:04 +00:00
Add channel hover text
Fixes https://codeberg.org/MelodyChat/Fermi/issues/437
This commit is contained in:
@@ -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));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user