mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
WIP(shops): dates and fixes
This commit is contained in:
@@ -35,13 +35,9 @@
|
|||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
class="topbar-dropdown-item dropdown-item"
|
class="topbar-dropdown-item dropdown-item dropdown-separated"
|
||||||
@click="showAvatar('body', 'size')"
|
@click="showAvatar('body', 'size')"
|
||||||
>{{ $t('editAvatar') }}</a>
|
>{{ $t('editAvatar') }}</a>
|
||||||
<a
|
|
||||||
class="topbar-dropdown-item dropdown-item dropdown-separated"
|
|
||||||
@click="showAvatar('backgrounds', '2024')"
|
|
||||||
>{{ $t('backgrounds') }}</a>
|
|
||||||
<a
|
<a
|
||||||
class="topbar-dropdown-item dropdown-item"
|
class="topbar-dropdown-item dropdown-item"
|
||||||
@click="showProfile('profile')"
|
@click="showProfile('profile')"
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getKeyProp (item) {
|
getKeyProp (item) {
|
||||||
return this.keyProp ? item[this.keyProp] : item;
|
return this.keyProp ? item[this.keyProp] : item.key;
|
||||||
},
|
},
|
||||||
isDisabled (item) {
|
isDisabled (item) {
|
||||||
return typeof item[this.disabledProp] === 'undefined' ? false : item[this.disabledProp];
|
return typeof item[this.disabledProp] === 'undefined' ? false : item[this.disabledProp];
|
||||||
|
|||||||
@@ -857,9 +857,10 @@ export function getScheduleMatchingGroup (type, date) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!cachedScheduleMatchers[type]) {
|
if (!cachedScheduleMatchers[type]) {
|
||||||
let end = moment(checkedDate).date(TYPE_SCHEDULE[type]);
|
let end = moment(checkedDate);
|
||||||
if (end.date() <= checkedDate.date()) {
|
end.date(TYPE_SCHEDULE[type]);
|
||||||
end = moment(end).add(1, 'months');
|
if (end.date() <= moment(checkedDate).date()) {
|
||||||
|
moment(end).add(1, 'months');
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
end: end.toDate(),
|
end: end.toDate(),
|
||||||
|
|||||||
@@ -491,7 +491,7 @@ export default function getItemInfo (user, type, item, officialPinnedItems, lang
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (matcher) {
|
if (matcher) {
|
||||||
itemInfo.end = { matcher };
|
itemInfo.end = matcher.end;
|
||||||
}
|
}
|
||||||
|
|
||||||
return itemInfo;
|
return itemInfo;
|
||||||
|
|||||||
@@ -582,6 +582,7 @@ shops.getCustomizationsShopCategories = function getCustomizationsShopCategories
|
|||||||
bg,
|
bg,
|
||||||
officialPinnedItems,
|
officialPinnedItems,
|
||||||
language,
|
language,
|
||||||
|
matchers,
|
||||||
);
|
);
|
||||||
backgroundCategory.items.push(item);
|
backgroundCategory.items.push(item);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user