forget button in "other devices"

pull/2/merge
Szymon Lesisz 6 years ago
parent 9125fbcd61
commit 9c475e4005

@ -201,12 +201,16 @@ export class DeviceDropdown extends Component<Props> {
<span className="label">{ dev.instanceLabel }</span> <span className="label">{ dev.instanceLabel }</span>
<span className="status">{ deviceStatus }</span> <span className="status">{ deviceStatus }</span>
</div> </div>
<div className="forget-button" onMouseDown={ (event) => {
event.stopPropagation();
event.preventDefault();
this.onDeviceMenuClick({ type: 'forget', label: ''}, dev);
} }> </div>
</div> </div>
); );
}); });
return ( return (
<section> <section>
{ currentDeviceMenu } { currentDeviceMenu }

@ -196,6 +196,20 @@ aside {
font-size: 11px; font-size: 11px;
margin-right: 8px; margin-right: 8px;
} }
.forget-button {
color: @color_text_secondary;
.hover();
&:before {
.icomoon-eject;
position: relative;
font-size: 24px;
}
&:hover {
color: @color_text_primary;
}
}
} }
.device-menu { .device-menu {

Loading…
Cancel
Save