Frontend: Fixed reactions and invalid access
ci/woodpecker/push/ociImagePush Pipeline failed Details

This commit is contained in:
Natty 2023-11-06 00:55:18 +01:00
parent 3efc376f2b
commit 0ed06ee68f
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
3 changed files with 5 additions and 16 deletions

View File

@ -19,7 +19,7 @@
@after-enter="onOpened" @after-enter="onOpened"
> >
<FocusTrap <FocusTrap
v-model:active="isActive" v-model:active="manualShowing != null ? manualShowing : showing"
:return-focus-on-deactivate="!noReturnFocus" :return-focus-on-deactivate="!noReturnFocus"
> >
<div <div
@ -77,7 +77,7 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { nextTick, onMounted, watch, provide, onUnmounted } from "vue"; import { nextTick, onMounted, onUnmounted, provide, watch } from "vue";
import * as os from "@/os"; import * as os from "@/os";
import { isTouchUsing } from "@/scripts/touch"; import { isTouchUsing } from "@/scripts/touch";
import { defaultStore } from "@/store"; import { defaultStore } from "@/store";

View File

@ -6,7 +6,7 @@
: Object.entries(note.reactions)" : Object.entries(note.reactions)"
:key="magReactionPairToLegacy(r)[0]" :key="magReactionPairToLegacy(r)[0]"
:reaction="magReactionPairToLegacy(r)[0]" :reaction="magReactionPairToLegacy(r)[0]"
:url="'url' in r[0] ? r[0]['url'] : undefined" :url="typeof r[0]['url'] !== 'undefined' ? r[0]['url'] : undefined"
:count="magReactionPairToLegacy(r)[1]" :count="magReactionPairToLegacy(r)[1]"
:is-initial="initialReactions.has(magReactionPairToLegacy(r)[0])" :is-initial="initialReactions.has(magReactionPairToLegacy(r)[0])"
:note="note" :note="note"

View File

@ -91,7 +91,7 @@
</nav> </nav>
</template> </template>
<div class="buttons right"> <div class="buttons right">
<template v-if="metadata.avatar"> <template v-if="metadata?.avatar">
<MkFollowButton <MkFollowButton
v-if="narrow" v-if="narrow"
:user="metadata.avatar" :user="metadata.avatar"
@ -121,21 +121,10 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { import { inject, nextTick, onMounted, onUnmounted, ref, watch } from "vue";
computed,
onMounted,
onUnmounted,
ref,
inject,
watch,
shallowReactive,
nextTick,
reactive,
} from "vue";
import MkFollowButton from "@/components/MkFollowButton.vue"; import MkFollowButton from "@/components/MkFollowButton.vue";
import { popupMenu } from "@/os"; import { popupMenu } from "@/os";
import { scrollToTop } from "@/scripts/scroll"; import { scrollToTop } from "@/scripts/scroll";
import { globalEvents } from "@/events";
import { injectPageMetadata } from "@/scripts/page-metadata"; import { injectPageMetadata } from "@/scripts/page-metadata";
import { $i, openAccountMenu as openAccountMenu_ } from "@/account"; import { $i, openAccountMenu as openAccountMenu_ } from "@/account";
import { i18n } from "@/i18n"; import { i18n } from "@/i18n";