mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-08 01:06:41 +08:00
feat(calendar): enhance loading behavior and mobile layout for subscriptions
This commit is contained in:
@@ -642,7 +642,7 @@ async function eventsHander(subscribe: Subscribe) {
|
|||||||
|
|
||||||
// 调用API查询所有订阅
|
// 调用API查询所有订阅
|
||||||
async function getSubscribes() {
|
async function getSubscribes() {
|
||||||
if (!isLoaded.value) openProgressDialog()
|
if (!isLoaded.value && display.mdAndUp.value) openProgressDialog()
|
||||||
try {
|
try {
|
||||||
// 订阅
|
// 订阅
|
||||||
loading.value = true
|
loading.value = true
|
||||||
@@ -767,6 +767,9 @@ onActivated(() => {
|
|||||||
</FullCalendar>
|
</FullCalendar>
|
||||||
|
|
||||||
<div v-else class="mobile-subscribe-calendar">
|
<div v-else class="mobile-subscribe-calendar">
|
||||||
|
<LoadingBanner v-if="!isLoaded" class="mt-12" />
|
||||||
|
|
||||||
|
<template v-else>
|
||||||
<section class="mobile-calendar-filter-card">
|
<section class="mobile-calendar-filter-card">
|
||||||
<div class="mobile-calendar-filter-head">
|
<div class="mobile-calendar-filter-head">
|
||||||
<div class="mobile-calendar-filter-copy">
|
<div class="mobile-calendar-filter-copy">
|
||||||
@@ -894,6 +897,7 @@ onActivated(() => {
|
|||||||
<h2>{{ t('common.noData') }}</h2>
|
<h2>{{ t('common.noData') }}</h2>
|
||||||
<p>{{ t('calendar.noMatchingEvents') }}</p>
|
<p>{{ t('calendar.noMatchingEvents') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user