mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-06 12:06:58 +00:00
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
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue