mirror of
https://git.boykissers.com/pawkey/pawkey-sk.git
synced 2025-12-20 12:14:18 +00:00
fix lint errors in SkRemoteFollowersWarning.vue and MkInfo.vue
This commit is contained in:
@@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
<i v-if="warn" class="ti ti-alert-triangle" :class="$style.i"></i>
|
||||
<i v-else class="ti ti-info-circle" :class="$style.i"></i>
|
||||
<div><slot></slot></div>
|
||||
<button v-if="closable" :class="$style.button" class="_button" @click="close()"><i class="ti ti-x"></i></button>
|
||||
<button v-if="closable" :class="$style.button" class="_button" @click="closeInfo()"><i class="ti ti-x"></i></button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -24,7 +24,7 @@ const emit = defineEmits<{
|
||||
(ev: 'close'): void;
|
||||
}>();
|
||||
|
||||
function close() {
|
||||
function closeInfo() {
|
||||
// こいつの中では非表示動作は行わない
|
||||
emit('close');
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user