mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
replace websocket messages's \n with <br>
This commit is contained in:
parent
6016d6b207
commit
d655e679d9
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ export default {
|
||||||
'DISPATCH_MESSAGE' ({ commit }, { request, messages }) {
|
'DISPATCH_MESSAGE' ({ commit }, { request, messages }) {
|
||||||
for (const type in messages) {
|
for (const type in messages) {
|
||||||
const message = {
|
const message = {
|
||||||
text: messages[type],
|
text: messages[type].replace('\n', '<br>'),
|
||||||
color: type === 'error' ? 'danger' : type
|
color: type === 'error' ? 'danger' : type
|
||||||
}
|
}
|
||||||
let progressBar = message.text.match(/^\[#*\+*\.*\] > /)
|
let progressBar = message.text.match(/^\[#*\+*\.*\] > /)
|
||||||
|
|
Loading…
Add table
Reference in a new issue