Make it more clear which source you are connected to

pull/10616/head
Alex P 2017-05-10 17:08:45 -07:00
parent b4966df2bd
commit 7d006bca2a
2 changed files with 15 additions and 6 deletions

View File

@ -120,12 +120,14 @@ const InfluxTable = ({
)}
</td>
<td className="text-right">
<Link
className="btn btn-success btn-xs"
to={`/sources/${s.id}/hosts`}
>
Connect
</Link>
{s.id === source.id
? <span className="currently-connected-source">Connected</span>
: <Link
className="btn btn-success btn-xs"
to={`/sources/${s.id}/hosts`}
>
Connect
</Link>}
<button
className="btn btn-danger btn-xs"
onClick={() => handleDeleteSource(s)}

View File

@ -178,4 +178,11 @@
}
}
.currently-connected-source {
color: $c-rainforest;
font-weight: 600;
font-size: 12px;
margin: 0 4px;
@include no-user-select();
}