am i dumb

This commit is contained in:
ThatOneCalculator 2022-11-07 00:21:54 -08:00
parent 49d12f398f
commit 4f91798fa8
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{
"name": "calckey",
"version": "12.119.0-calc.9.10",
"version": "12.119.0-calc.9.1",
"codename": "aqua",
"repository": {
"type": "git",

View file

@ -107,7 +107,7 @@ window.addEventListener('resize', () => {
isMobile.value = deviceKind === 'smartphone' || window.innerWidth <= MOBILE_THRESHOLD;
});
let buttonAnimIndex = 0;
let buttonAnimIndex = ref(0);
let pageMetadata = $ref<null | ComputedRef<PageMetadata>>();
const widgetsEl = $ref<HTMLElement>();
@ -124,7 +124,7 @@ provideMetadataReceiver((info) => {
const menuIndicated = computed(() => {
for (const def in navbarItemDef) {
// if (def === 'notifications') continue; //
if (def === 'notifications') continue; //
if (navbarItemDef[def].indicated) return true;
}
return false;
@ -138,8 +138,8 @@ mainRouter.on('change', () => {
console.log(routerState);
const bottomButtons = ['index', 'notifications', 'messaging'];
bottomButtons.forEach(i => {
if (routerState.includes(i)) {
buttonAnimIndex = bottomButtons.findIndex(j => j.includes(i));
if (routerState?.includes(i)) {
buttonAnimIndex.value = bottomButtons.findIndex(j => j.includes(i));
}
});
});