From 66c1c0cee066c82eff4d3c7e83dd4e5480937f0b Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Sun, 30 Nov 2025 15:00:16 -0600 Subject: [PATCH] move icon setting --- src/webpage/channel.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/webpage/channel.ts b/src/webpage/channel.ts index 0edd7d8..8ddaa10 100644 --- a/src/webpage/channel.ts +++ b/src/webpage/channel.ts @@ -344,6 +344,10 @@ class Channel extends SnowFlake { form.addMDInput(I18n.channel["topic:"](), "topic", { initText: this.topic, }); + form.addImageInput(I18n.channel.icon(), "icon", { + initImg: this.icon ? this.iconUrl() : undefined, + clear: true, + }); form.addCheckboxInput(I18n.channel["nsfw:"](), "nsfw", { initState: this.nsfw, }); @@ -392,10 +396,6 @@ class Channel extends SnowFlake { obj.type = {text: 0, voice: 2, announcement: 5, category: 4}[obj.type as string]; }); } - form.addImageInput(I18n.channel.icon(), "icon", { - initImg: this.icon ? this.iconUrl() : undefined, - clear: true, - }); } const s1 = settings.addButton(I18n.channel.permissions(), {optName: ""});