mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-24 06:28:34 +01:00
Add a warning when the version does not match the latest release (#442)
Some checks failed
Docker publish rootless / build-rootless (push) Waiting to run
Docker publish / build (push) Waiting to run
Update Currencies / update-currencies (push) Waiting to run
Docker publish ARM / build (push) Has been cancelled
Docker publish rootless ARM / build-rootless (push) Has been cancelled
Dockerhub publish / build (push) Has been cancelled
Some checks failed
Docker publish rootless / build-rootless (push) Waiting to run
Docker publish / build (push) Waiting to run
Update Currencies / update-currencies (push) Waiting to run
Docker publish ARM / build (push) Has been cancelled
Docker publish rootless ARM / build-rootless (push) Has been cancelled
Dockerhub publish / build (push) Has been cancelled
This commit is contained in:
41
frontend/components/App/OutdatedModal.vue
Normal file
41
frontend/components/App/OutdatedModal.vue
Normal file
@@ -0,0 +1,41 @@
|
||||
<template>
|
||||
<BaseModal v-model="modal">
|
||||
<template #title>🎉 {{ $t("components.app.outdated.new_version_available") }} 🎉</template>
|
||||
<div class="p-4">
|
||||
<p>{{ $t("components.app.outdated.current_version") }}: {{ current }}</p>
|
||||
<p>{{ $t("components.app.outdated.latest_version") }}: {{ latest }}</p>
|
||||
<p>
|
||||
<a href="https://github.com/sysadminsmedia/homebox/releases" target="_blank" rel="noopener" class="link">
|
||||
{{ $t("components.app.outdated.new_version_available_link") }}
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
<button class="btn btn-warning" @click="hide">
|
||||
{{ $t("components.app.outdated.dismiss") }}
|
||||
</button>
|
||||
</BaseModal>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const props = defineProps({
|
||||
modelValue: {
|
||||
type: Boolean,
|
||||
required: true,
|
||||
},
|
||||
current: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
latest: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
});
|
||||
|
||||
const modal = useVModel(props, "modelValue");
|
||||
|
||||
const hide = () => {
|
||||
modal.value = false;
|
||||
localStorage.setItem("latestVersion", props.latest);
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user