-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
UX - Display an error message if the layer is not found in the CFG file, if admin #5304
base: master
Are you sure you want to change the base?
Conversation
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.
Nice catch. Minor rephrasing needed IMHO
1902a6c
to
b388246
Compare
b388246
to
a503f35
Compare
3e5e035
to
e706c65
Compare
e706c65
to
82133d5
Compare
I'm keen to have feedbacks about this I didn't look too much |
Where is the issue? |
|
try { | ||
// document is not defined in JUnit | ||
if (document.body.dataset.lizmapAdminUser === 1) { | ||
lizMap.addMessage(errorMessage, 'warning', true).attr('id', 'lizmap-warning-message'); | ||
} | ||
}catch(error) {} |
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.
try { | |
// document is not defined in JUnit | |
if (document.body.dataset.lizmapAdminUser === 1) { | |
lizMap.addMessage(errorMessage, 'warning', true).attr('id', 'lizmap-warning-message'); | |
} | |
}catch(error) {} |
Do not use LizMap
or do some UX here.
I'm keen to have some feedbacks here.
For now, globally in Lizmap, if an error occurs, there is nothing displayed in the user interface. The only way is to open the developer tools, which is not a good advice, our admin end-users shouldn't open the web developer tools.
It would be nice, at the end of loading a map, a UI box is displayed if there were any "error" during loading the map ?
Just to keen to have ideas