fix lint errors in SkRemoteFollowersWarning.vue and MkInfo.vue
This commit is contained in:
parent
1840aad741
commit
2eae1797cb
2 changed files with 6 additions and 5 deletions
|
|
@ -4,16 +4,17 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
-->
|
||||
|
||||
<template>
|
||||
<MkInfo v-if="showRemoteWarning" warn closable @close="close">
|
||||
<MkInfo v-if="showRemoteWarning" warn closable @close="closeWarning">
|
||||
{{ i18n.ts.remoteFollowersWarning }}
|
||||
</MkInfo>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue';
|
||||
import type { FollowingFeedModel } from '@/utility/following-feed-utils.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
import MkInfo from '@/components/MkInfo.vue';
|
||||
import { followersTab, FollowingFeedModel } from '@/utility/following-feed-utils.js';
|
||||
import { followersTab } from '@/utility/following-feed-utils.js';
|
||||
|
||||
const props = defineProps<{
|
||||
model: FollowingFeedModel,
|
||||
|
|
@ -26,7 +27,7 @@ const showRemoteWarning = computed(
|
|||
() => userList.value === followersTab && !remoteWarningDismissed.value,
|
||||
);
|
||||
|
||||
function close() {
|
||||
function closeWarning() {
|
||||
remoteWarningDismissed.value = true;
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue