A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.
chore: hide pluton agent version number on main device
towfiqi438c02cf8bb3
diff --git a/frontend/src/components/Device/DeviceItem/DeviceItem.tsx b/frontend/src/components/Device/DeviceItem/DeviceItem.tsxindex 4916baf..89af065 100644--- a/frontend/src/components/Device/DeviceItem/DeviceItem.tsx+++ b/frontend/src/components/Device/DeviceItem/DeviceItem.tsx@@ -54,13 +54,15 @@ const DeviceItem = ({ device, layout }: DeviceItemProps) => {<div className={classes.version}><Icon type="backup" size={14} /> <i>{plans.length} Plans</i></div>- <div- className={classes.version}- data-tooltip-id="appTooltip"- data-tooltip-content={`Pluton Agent version: ${agentVersion ? 'v' + agentVersion : 'latest'}`}- >- <Icon type="logo" size={13} /> <i>{agentVersion ? 'v' + agentVersion : 'latest'}</i>- </div>+ {id !== 'main' && (+ <div+ className={classes.version}+ data-tooltip-id="appTooltip"+ data-tooltip-content={`Pluton Agent version: ${agentVersion ? 'v' + agentVersion : 'latest'}`}+ >+ <Icon type="logo" size={13} /> <i>{agentVersion ? 'v' + agentVersion : 'latest'}</i>+ </div>+ )}<button className={`${classes.moreBtn} ${showSettings ? classes.moreBtnActive : ''}`} onClick={() => setShowSettings(!showSettings)}><Icon type="dots-vertical" size={14} /></button>diff --git a/frontend/src/components/common/Icon/Icon.tsx b/frontend/src/components/common/Icon/Icon.tsxindex 0003666..d0c3e7b 100644--- a/frontend/src/components/common/Icon/Icon.tsx+++ b/frontend/src/components/common/Icon/Icon.tsx@@ -1241,6 +1241,15 @@ const Icon = ({ type, color = 'currentColor', size = 16, title = '', classes = '</g></IconWrapper>)}+ {type === 'update' && (+ <IconWrapper size={size} viewBox="0 0 24 24">+ <path d="M0 0h24v24H0z" fill="none" />+ <path+ fill="currentColor"+ d="m18 22l3-3l-.7-.7l-1.8 1.8V16h-1v4.1l-1.8-1.8l-.7.7zM12 4L6.075 7.425L12 10.85l5.925-3.425zM3 15.975v-7.95q0-.55.263-1T4 6.3l7-4.025q.25-.125.488-.2T12 2t.525.075t.475.2L20 6.3q.475.275.738.725t.262 1V12h-2V9.1l-7.025 4.05L5 9.1v6.85l6 3.475v2.3L4 17.7q-.475-.275-.737-.725t-.263-1m11.463 6.563Q13 21.075 13 19t1.463-3.537T18 14t3.538 1.463T23 19t-1.463 3.538T18 24t-3.537-1.463M12 11.726"+ />+ </IconWrapper>+ )}{type === 'file-new' && (<IconWrapper size={size} viewBox="0 0 24 24"><g fill="none" stroke={color} strokeLinecap="round" strokeLinejoin="round" strokeWidth={1.5} color={color}>