refactor: update checker moved to App.vue, added new animated icons

This commit is contained in:
2025-07-11 02:29:05 +03:00
parent a56ab6adb9
commit b71e4cc6f9
3 changed files with 22 additions and 11 deletions

View File

@@ -84,9 +84,6 @@ import ProgressBar from '@/components/ui/ProgressBar.vue'
import { handleError } from '@/store/notifications.js'
import { get_many } from '@/helpers/profile.js'
import { trackEvent } from '@/helpers/analytics'
import { getRemote } from '@/helpers/update.js'
await getRemote(false)
const router = useRouter()
const card = ref(null)

View File

@@ -173,13 +173,12 @@ function devModeCount() {
</div>
<div v-if="updateState" class="w-8 h-8 cursor-pointer hover:brightness-75 neon-icon pulse">
<template v-if="installState">
<SpinnerIcon class="size-6 animate-spin" />
<SpinnerIcon class="size-6 animate-spin" v-tooltip.bottom="'Installing in process...'" />
</template>
<template v-else>
<DownloadIcon class="size-6" @click="!installState && (initUpdateModal(), getRemote(false))" />
<DownloadIcon class="size-6" v-tooltip.bottom="'View update info'" @click="!installState && (initUpdateModal(), getRemote(false))" />
</template>
</div>
</div>
</div>
</template>