mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
feat(newStuff): show newStuff modal on page load if present
This commit is contained in:
parent
2cc251149c
commit
0b9c5271bb
1 changed files with 4 additions and 0 deletions
|
|
@ -167,5 +167,9 @@ habitrpg.controller('NotificationCtrl',
|
|||
$rootScope.$on('responseText', function(ev, error){
|
||||
Notification.text(error);
|
||||
});
|
||||
|
||||
// Show new-stuff modal on load
|
||||
if (User.user.flags.newStuff)
|
||||
$rootScope.openModal('newStuff');
|
||||
}
|
||||
]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue