mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-17 09:22:19 +00:00
Merge pull request #3870 from Alys/dropNotifications
adds drop notifications for eggs, food - partial? fix for https://github.com/HabitRPG/habitrpg/issues/3787
This commit is contained in:
commit
2ad5d4b00b
1 changed files with 2 additions and 2 deletions
|
|
@ -70,11 +70,11 @@ habitrpg.controller('NotificationCtrl',
|
|||
}else if(after.type === 'Egg'){
|
||||
var text = Content.eggs[after.key].text();
|
||||
var notes = Content.eggs[after.key].notes();
|
||||
Notification.after(env.t('messageDropEgg', {dropText: text, dropNotes: notes}));
|
||||
Notification.drop(env.t('messageDropEgg', {dropText: text, dropNotes: notes}));
|
||||
}else if(after.type === 'Food'){
|
||||
var text = Content.food[after.key].text();
|
||||
var notes = Content.food[after.key].notes();
|
||||
Notification.after(env.t('messageDropFood', {dropArticle: after.article, dropText: text, dropNotes: notes}));
|
||||
Notification.drop(env.t('messageDropFood', {dropArticle: after.article, dropText: text, dropNotes: notes}));
|
||||
}else{
|
||||
// Keep support for another type of drops that might be added
|
||||
Notification.drop(User.user._tmp.drop.dialog);
|
||||
|
|
|
|||
Loading…
Reference in a new issue