solymosi / npu

Neptun PowerUp! - Felturbózza a Neptun-odat
MIT License
274 stars 47 forks source link

Allow user to dismiss the 'you have an official message' popup #15

Closed solymosi closed 7 years ago

solymosi commented 7 years ago

Some universities regularly publish "official messages" to students. When that happens, an dialog box appears upon login that cannot be closed, informing the student that they have official messages. The only option by default is to read those messages, and until the student does that, they cannot use Neptun at all.

This PR adds an "I don't care right now" button to the dialog when it's being displayed on the "incoming messages" page (i.e. the page right after login). Click that button dismisses the dialog without marking the relevant messages as read. On any other page than "incoming messages", the popup is automatically dismissed without any user intervention.

whisperity commented 7 years ago

This is good stuff. Pretty dangerous but nontheless good, I like it.