Compare commits

...

4 commits

Author SHA1 Message Date
Paul Makles
ac2beaf549
chore: update URL to FAQ 2024-12-17 17:35:55 +00:00
Amy
bf951e59ee
fix: appending mention to draft content (#1065) 2024-12-17 17:29:57 +00:00
Paul Makles
03f9f7673d
merge: pull request #1050 from JackDotJS/fix-blank-category-name 2024-12-17 17:29:16 +00:00
JackDotJS
28c897ac3d fix(settings): fixed inability to rename categories when they have blank names
Signed-off-by: JackDotJS <jackdotjs@proton.me>
2024-10-27 11:14:04 -07:00
3 changed files with 6 additions and 4 deletions

View file

@ -305,7 +305,7 @@ export default observer(({ channel }: Props) => {
if (!state.draft.has(channel._id)) {
setMessage(text);
} else {
setMessage(`${state.draft.get(channel._id)}\n${text}`);
setMessage(`${state.draft.get(channel._id)?.content}\n${text}`);
}
}

View file

@ -259,7 +259,7 @@ export const Form = observer(({ page, callback }: Props) => {
<span>
<Text id="login.unofficial_instance" />{" "}
<a
href="https://developers.revolt.chat/faq/instances#what-is-a-third-party-instance"
href="https://developers.revolt.chat/faq.html"
style={{ color: "var(--accent)" }}
target="_blank"
rel="noreferrer">

View file

@ -369,7 +369,9 @@ function ListElement({
<KanbanList last={false} key={category.id}>
<div className="inner">
<Row>
<KanbanListHeader {...provided.dragHandleProps}>
<KanbanListHeader
{...provided.dragHandleProps}
onClick={startEditing}>
{editing !== undefined ? (
<input
value={editing}
@ -384,7 +386,7 @@ function ListElement({
id={category.id}
/>
) : (
<span onClick={startEditing}>
<span>
{category.title}
</span>
)}