fix: do not consider backup limit in reinstall prompt (#2994)

Signed-off-by: Evan Song <theevansong@gmail.com>
This commit is contained in:
Evan Song 2024-12-09 16:10:36 -07:00 committed by GitHub
parent 88b1a370d4
commit d851f32ea0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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"