diff --git a/src/components/dialog/content/manager/PackStatusMessage.vue b/src/components/dialog/content/manager/PackStatusMessage.vue index b31f880e9..0e33b3117 100644 --- a/src/components/dialog/content/manager/PackStatusMessage.vue +++ b/src/components/dialog/content/manager/PackStatusMessage.vue @@ -32,8 +32,9 @@ type StatusProps = { severity: MessageSeverity } -const { statusType } = defineProps<{ +const { statusType, hasCompatibilityIssues } = defineProps<{ statusType: Status + hasCompatibilityIssues?: boolean }>() const statusPropsMap: Record = { @@ -71,10 +72,14 @@ const statusPropsMap: Record = { } } -const statusLabel = computed( - () => statusPropsMap[statusType]?.label || 'unknown' +const statusLabel = computed(() => + hasCompatibilityIssues + ? 'conflicting' + : statusPropsMap[statusType]?.label || 'unknown' ) -const statusSeverity = computed( - () => statusPropsMap[statusType]?.severity || 'secondary' +const statusSeverity = computed(() => + hasCompatibilityIssues + ? 'error' + : statusPropsMap[statusType]?.severity || 'secondary' ) diff --git a/src/components/dialog/content/manager/infoPanel/InfoPanel.vue b/src/components/dialog/content/manager/infoPanel/InfoPanel.vue index 818721310..6919ac904 100644 --- a/src/components/dialog/content/manager/infoPanel/InfoPanel.vue +++ b/src/components/dialog/content/manager/infoPanel/InfoPanel.vue @@ -32,6 +32,7 @@ :status-type=" nodePack.status as components['schemas']['NodeVersionStatus'] " + :has-compatibility-issues="hasCompatibilityIssues" /> @@ -131,9 +132,9 @@ const conflictResult = computed((): ConflictDetectionResult | null => { return null }) -const hasCompatibilityIssues = computed( - () => conflictResult.value?.has_conflict ?? false -) +const hasCompatibilityIssues = computed(() => { + return isInstalled.value && conflictResult.value?.has_conflict ? true : false +}) const infoItems = computed(() => [ { diff --git a/src/locales/en/main.json b/src/locales/en/main.json index 4ab1573a6..5814f842c 100644 --- a/src/locales/en/main.json +++ b/src/locales/en/main.json @@ -190,7 +190,8 @@ "flagged": "Flagged", "deleted": "Deleted", "banned": "Banned", - "unknown": "Unknown" + "unknown": "Unknown", + "conflicting": "Conflicting" }, "sort": { "downloads": "Most Popular",