Skip to content

Commit f605085

Browse files
authored
fix bug in tooltip that would always render 'updateable' (#5552)
* fix bug in tooltip that would always render 'updateable' * Remove double InstallCommand component from ScriptItems
1 parent 4a3b15a commit f605085

File tree

2 files changed

+1
-149
lines changed

2 files changed

+1
-149
lines changed

frontend/src/app/scripts/_components/ScriptItems/install-command.tsx

Lines changed: 0 additions & 148 deletions
This file was deleted.

frontend/src/app/scripts/_components/script-items/tool-tips.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function Tooltips({ item }: { item: Script }) {
3939
{item.privileged && (
4040
<TooltipBadge variant="warning" label="Privileged" content="This script will be run in a privileged LXC" />
4141
)}
42-
{(item.updateable || item.type !== "pve") && (
42+
{item.updateable && item.type !== "pve" && (
4343
<TooltipBadge
4444
variant="success"
4545
label="Updateable"

0 commit comments

Comments
 (0)