mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 15:38:59 +00:00
Change signature of notification service
This commit is contained in:
parent
ca31b490e6
commit
ee88ed4b44
1 changed files with 15 additions and 17 deletions
|
|
@ -5,23 +5,6 @@
|
||||||
angular.module("habitrpg").factory("Notification",
|
angular.module("habitrpg").factory("Notification",
|
||||||
['$filter', function($filter) {
|
['$filter', function($filter) {
|
||||||
|
|
||||||
var notificationService = {
|
|
||||||
coins: coins,
|
|
||||||
crit: crit,
|
|
||||||
drop: drop,
|
|
||||||
exp: exp,
|
|
||||||
error: error,
|
|
||||||
gp: gp,
|
|
||||||
hp: hp,
|
|
||||||
lvl: lvl,
|
|
||||||
markdown: markdown,
|
|
||||||
mp: mp,
|
|
||||||
streak: streak,
|
|
||||||
text: text
|
|
||||||
};
|
|
||||||
|
|
||||||
return notificationService;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Show "+ 5 {gold_coin} 3 {silver_coin}"
|
Show "+ 5 {gold_coin} 3 {silver_coin}"
|
||||||
*/
|
*/
|
||||||
|
|
@ -135,4 +118,19 @@ angular.module("habitrpg").factory("Notification",
|
||||||
icon: icon || false
|
icon: icon || false
|
||||||
}).click(function() { notice.pnotify_remove() });
|
}).click(function() { notice.pnotify_remove() });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
coins: coins,
|
||||||
|
crit: crit,
|
||||||
|
drop: drop,
|
||||||
|
exp: exp,
|
||||||
|
error: error,
|
||||||
|
gp: gp,
|
||||||
|
hp: hp,
|
||||||
|
lvl: lvl,
|
||||||
|
markdown: markdown,
|
||||||
|
mp: mp,
|
||||||
|
streak: streak,
|
||||||
|
text: text
|
||||||
|
};
|
||||||
}]);
|
}]);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue