mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Transform an 'info' message into 'log' when necessary
This commit is contained in:
parent
96508edd00
commit
d59576a3a1
2 changed files with 7 additions and 2 deletions
2
src/dist/js/script.min.js
vendored
2
src/dist/js/script.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -74,8 +74,13 @@ var app = Sammy('#main', function (sam) {
|
|||
|
||||
$('#slider').css('padding-top', '30px');
|
||||
|
||||
// If the line is a bash command
|
||||
if (level === 'info' && message.charAt(0) === '+') {
|
||||
level = 'log';
|
||||
}
|
||||
|
||||
$('#flashMessage')
|
||||
.prepend('<div class="alert alert-'+ level +'">'+
|
||||
.prepend('<div class="alert alert-'+ level +'">'+
|
||||
'<p>'+ message +'</p></div>');
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue