mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
* Fixed party invite accepting * Fixed message sending and scrolling * Fixed profile clicking * Hids needs work * Added group plan page images * Added category to editing groups * Added quest box fix * Added tier styles * Changed port back to 8080 * Fixed npc style
18 lines
551 B
JavaScript
18 lines
551 B
JavaScript
export default {
|
|
methods: {
|
|
userLevelStyle (user, style) {
|
|
style = style || '';
|
|
let npc = user && user.backer && user.backer.npc ? user.backer.npc : '';
|
|
let level = user && user.contributor && user.contributor.level ? user.contributor.level : '';
|
|
style += this.userLevelStyleFromLevel(level, npc, style);
|
|
return style;
|
|
},
|
|
userLevelStyleFromLevel (level, npc, style) {
|
|
style = style || '';
|
|
if (npc) style += ' npc';
|
|
if (level) style += ` tier${level}`;
|
|
return style;
|
|
},
|
|
},
|
|
};
|