mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Added icons to Notification for the item that is dropped.
This commit is contained in:
@@ -73,15 +73,15 @@ habitrpg.controller('NotificationCtrl',
|
||||
if(after.type === 'HatchingPotion'){
|
||||
var text = Content.hatchingPotions[after.key].text();
|
||||
var notes = Content.hatchingPotions[after.key].notes();
|
||||
Notification.drop(env.t('messageDropPotion', {dropText: text, dropNotes: notes}));
|
||||
Notification.drop(env.t('messageDropPotion', {dropText: text, dropNotes: notes}), after);
|
||||
}else if(after.type === 'Egg'){
|
||||
var text = Content.eggs[after.key].text();
|
||||
var notes = Content.eggs[after.key].notes();
|
||||
Notification.drop(env.t('messageDropEgg', {dropText: text, dropNotes: notes}));
|
||||
Notification.drop(env.t('messageDropEgg', {dropText: text, dropNotes: notes}), after);
|
||||
}else if(after.type === 'Food'){
|
||||
var text = Content.food[after.key].text();
|
||||
var notes = Content.food[after.key].notes();
|
||||
Notification.drop(env.t('messageDropFood', {dropArticle: after.article, dropText: text, dropNotes: notes}));
|
||||
Notification.drop(env.t('messageDropFood', {dropArticle: after.article, dropText: text, dropNotes: notes}), after);
|
||||
}else{
|
||||
// Keep support for another type of drops that might be added
|
||||
Notification.drop(User.user._tmp.drop.dialog);
|
||||
|
||||
Reference in New Issue
Block a user