User tests: Successful: Unsuccessful:
Pull Request for Issue #23632
When using Joomla.renderMessages, the correct class for a success and getting a greenish colour is message
and not success
.
This is defined in core.es6.js
by the code
if (['notice', 'message', 'error', 'warning'].indexOf(type) > -1) {
alertClass = (type === 'notice') ? 'info' : type;
alertClass = (type === 'message') ? 'success' : alertClass;
alertClass = (type === 'error') ? 'danger' : alertClass;
alertClass = (type === 'warning') ? 'warning' : alertClass;
} else {
alertClass = 'info';
}
Patch.
Run npm ci
Install some sample data
Status | New | ⇒ | Pending |
Category | ⇒ | JavaScript Repository |
Rips is happy here now
@infograf768 I think you should be the CODEOWNER for alert messages after all your work on them :)
I have tested this item
@PhilETaylor
no thanks for owning code.
but your test would help to get that in...
Labels |
Added:
?
|
My home iMac has (yet another) hardware issue... Im struggling to even get my life together this week... should be more productive over the weekend.
I have tested this item
It's weird that this PR actually solves the issue but either way. +1 from me if that's the final result
Status | Pending | ⇒ | Ready to Commit |
RTC
RTC
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-02-02 15:45:23 |
Closed_By | ⇒ | wilsonge |
Thanks JM!
@C-Lodder Our javascript mappings are somewhat weird https://github.com/infograf768/joomla-cms/blob/c2a6e13a5d2d819fdbe1ba62295aaf8208a9cc99/build/media_src/system/js/core.es6.js#L437-L442
@zero-24
RIPS please