fix: do not consider backup limit in reinstall prompt (#2994)
Signed-off-by: Evan Song <theevansong@gmail.com>
This commit is contained in:
parent
88b1a370d4
commit
d851f32ea0
@ -272,6 +272,7 @@ const backupServer = ref(false);
|
|||||||
|
|
||||||
const isError = computed(() => props.server.general?.status === "error");
|
const isError = computed(() => props.server.general?.status === "error");
|
||||||
const isDangerous = computed(() => hardReset.value);
|
const isDangerous = computed(() => hardReset.value);
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
const isBackupLimited = computed(() => (props.server.backups?.data?.length || 0) >= 15);
|
const isBackupLimited = computed(() => (props.server.backups?.data?.length || 0) >= 15);
|
||||||
|
|
||||||
const versionStrings = ["forge", "fabric", "quilt", "neo"] as const;
|
const versionStrings = ["forge", "fabric", "quilt", "neo"] as const;
|
||||||
@ -318,7 +319,6 @@ const mrpackModal = ref();
|
|||||||
const canInstall = computed(() => {
|
const canInstall = computed(() => {
|
||||||
const conds =
|
const conds =
|
||||||
!selectedMCVersion.value ||
|
!selectedMCVersion.value ||
|
||||||
isBackupLimited.value ||
|
|
||||||
isLoading.value ||
|
isLoading.value ||
|
||||||
loadingServerCheck.value ||
|
loadingServerCheck.value ||
|
||||||
serverCheckError.value.trim().length > 0;
|
serverCheckError.value.trim().length > 0;
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
"turbo": "^2.2.3",
|
"turbo": "^2.2.3",
|
||||||
"vue": "^3.4.31"
|
"vue": "^3.4.31"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.4.0",
|
"packageManager": "pnpm@9.15.0",
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"patchedDependencies": {
|
"patchedDependencies": {
|
||||||
"readable-stream@2.3.8": "patches/readable-stream@2.3.8.patch"
|
"readable-stream@2.3.8": "patches/readable-stream@2.3.8.patch"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user