mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
am i dumb
This commit is contained in:
parent
3f79831ab7
commit
ce5a0c8c98
@ -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",
|
||||
|
@ -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));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user