Skip to content

Commit 3ea2dc6

Browse files
collins-selfcollins-self
authored andcommitted
removed redundant button fixed tooltip
1 parent 3f18841 commit 3ea2dc6

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/CommonComponents/LocationDrawingsButton.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,17 @@ const LocationDrawingsButton: React.FC<LocationDrawingsButtonProps> = (props) =>
118118
<button
119119
className={locationOptions[0]?.Disabled ? "btn btn-primary disabled" : "btn btn-primary"}
120120
onClick={() => locationOptions[0]?.Disabled ? null : handleClickDrawingsModal(props.Locations[0])}
121+
data-tooltip={"DrawingsModal"}
121122
onMouseEnter={() => setHover('drawings')}
122123
onMouseLeave={() => setHover('none')}
123124
>Open {props.Locations[0]?.Name} Drawings
124125
</button>
125126
<ToolTip
126127
Show={locationOptions[0]?.Disabled && hover === 'drawings'}
127-
Position={'bottom'}
128+
Position={'left'}
128129
Target={"DrawingsModal"}
129130
Zindex={9999}
130-
><p>{CrossMark} {locationOptions[0]?.ToolTipContent}</p>
131+
><p>{locationOptions[0]?.ToolTipContent}</p>
131132
</ToolTip>
132133
</>
133134
: <BtnDropdown

Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/NewMeterWizard/AssetPage.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ import GenerationAttributes from '../AssetAttribute/Generation';
4545
import StationAuxAttributes from '../AssetAttribute/StationAux';
4646
import StationBatteryAttributes from '../AssetAttribute/StationBattery';
4747
import ChannelSelector from './ChannelSelector';
48-
import LocationDrawingsButton from '../CommonComponents/LocationDrawingsButton';
4948

5049
declare var homePath: string;
5150

@@ -482,11 +481,6 @@ export default function AssetPage(props: IProps) {
482481
<li className="nav-item" style={{ width: '20%', paddingRight: 10 }}>
483482
<fieldset className="border" style={{ padding: '10px', height: '100%' }}>
484483
<legend className="w-auto" style={{ fontSize: 'large' }}>Actions:</legend>
485-
<form>
486-
<div className="form-group">
487-
<LocationDrawingsButton Locations={locations} />
488-
</div>
489-
</form>
490484
</fieldset>
491485
</li>
492486
</AssetSelect>

0 commit comments

Comments
 (0)