-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(MessageBody): apply checkbox interactivity #12063
Conversation
src/components/MessagesList/MessagesGroup/Message/MessagePart/MessageBody.vue
Show resolved
Hide resolved
91501ea
to
4319499
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, and also should message should be editable
Please refer to the #11402 (comment)
src/components/MessagesList/MessagesGroup/Message/MessagePart/MessageBody.vue
Outdated
Show resolved
Hide resolved
let checkBoxIndex = 0 | ||
const lines = this.message.split('\n') | ||
for (let i = 0; i < lines.length; i++) { | ||
if (lines[i].trim().match(/^- {1,4}\[\s\]/) || lines[i].trim().match(/^- {1,4}\[x\]/)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
between -
and [ ]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume you are referring to the spaces before -
, trim()
is there for that.
src/components/MessagesList/MessagesGroup/Message/MessagePart/MessageBody.vue
Show resolved
Hide resolved
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
4319499
to
dab36c8
Compare
/backport to stable29 |
☑️ Resolves
🖌️ UI Checklist
🖼️ Screenshots / Screencasts
Recording.2024-04-11.152411.mp4
🏁 Checklist