handle edge case where versions have differing envs better + update changelog + lint

This commit is contained in:
Prospector
2025-08-31 10:31:49 -07:00
parent 8058993578
commit 48e5319134
6 changed files with 26 additions and 5 deletions

View File

@@ -755,7 +755,7 @@
v-if="
currentMember &&
projectV3.side_types_migration_review_status === 'pending' &&
projectV3.environment?.length > 0 &&
projectV3.environment?.length === 1 &&
projectV3.environment[0] !== 'unknown'
"
type="warning"

View File

@@ -161,7 +161,7 @@ const messages = defineMessages({
</template>
</div>
<UnsavedChangesPopup
v-if="supportsEnvironment && hasPermission"
v-if="supportsEnvironment && hasPermission && projectV3?.environment?.length <= 1"
:original="saved"
:modified="current"
:saving="saving"

View File

@@ -457,7 +457,8 @@ if (user.value?.projects) {
user.value?.projectsV3?.forEach((project) => {
if (
project.side_types_migration_review_status === 'pending' &&
(project.project_types.includes('mod') || project.project_types.includes('modpack'))
(project.project_types.includes('mod') || project.project_types.includes('modpack')) &&
project.environment?.length === 1
) {
projectsWithMigrationWarning.value.push(project.id)
}