diff --git a/src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt b/src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt index 7ef30298a..4d7aad469 100644 --- a/src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt +++ b/src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt @@ -1,5 +1,5 @@ {# - # Copyright (c) 2015-2021 Franco Fichtner + # Copyright (c) 2015-2022 Franco Fichtner # Copyright (c) 2015-2018 Deciso B.V. # All rights reserved. # @@ -403,18 +403,18 @@ misconfigured_plugins = 1; } else if (row['installed'] == "0" && row['configured'] == "1") { status_text = ' ({{ lang._('missing') }})'; - bold_on = ''; + bold_on = ''; bold_off = ''; missing_plugins = 1; } else if (row['installed'] == "1") { - status_text = ' ({{ lang._('installed') }})'; + if (row['provided'] == "0") { + status_text = ' ({{ lang._('orphaned') }})'; + } else { + status_text = ' ({{ lang._('installed') }})'; + } bold_on = ''; bold_off = ''; } - if (row['provided'] == "0" && row['installed'] == "1") { - // this state overwrites installed on purpose - status_text = ' ({{ lang._('orphaned') }})'; - } $('#pluginlist > tbody').append( '' + '' + bold_on + row['name'] + status_text + bold_off + '' + '' + bold_on + row['version'] + bold_off + '' +