fossology / FOSSologyUI

Repository to hold the new UI framework for FOSSology built with React
https://fossology.github.io/FOSSologyUI/
GNU General Public License v2.0
49 stars 88 forks source link

feat(alert): alert message on homepage for logout error #124

Closed Aman-Codes closed 3 years ago

Aman-Codes commented 3 years ago

Description

In case of a 403 error, displayed the body of the response as a snack bar on the homepage. Previous discussion on #117

Changes

Screenshot

image

How to test

Go to http://localhost:3000/?message=Requested%20resource%20is%20forbidden Or make a request which returns a 403 error code.

github-actions[bot] commented 3 years ago

This pull request has conflicts, please rebase to resolve those before we can evaluate the pull request.

GMishx commented 3 years ago

Is it possible to remove the message from URL once snackbar is loaded?

image

Aman-Codes commented 3 years ago

Is it possible to remove the message from URL once snackbar is loaded?

Yes, updated it to remove message after page load