mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
cmd/strelaypoolsrv: Show popup on row hover
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4201
This commit is contained in:
parent
3395992abd
commit
d637148cca
@ -138,7 +138,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr ng-repeat="relay in relays | orderBy:sortType:sortReverse:sortCompare">
|
<tr ng-repeat="relay in relays | orderBy:sortType:sortReverse:sortCompare" ng-mouseover="relay.showMarker()" ng-mouseleave="relay.hideMarker()">
|
||||||
<td>{{ relay.address }}</td>
|
<td>{{ relay.address }}</td>
|
||||||
<td ng-if="relay.status === undefined" colspan="11" class="text-center">Looking up...</td>
|
<td ng-if="relay.status === undefined" colspan="11" class="text-center">Looking up...</td>
|
||||||
<td ng-if-start="relay.status !== undefined">{{ relay.status.numActiveSessions }}</td>
|
<td ng-if-start="relay.status !== undefined">{{ relay.status.numActiveSessions }}</td>
|
||||||
@ -307,13 +307,16 @@
|
|||||||
content: $compile($scope.tooltipTemplate)(scope)[0],
|
content: $compile($scope.tooltipTemplate)(scope)[0],
|
||||||
});
|
});
|
||||||
|
|
||||||
relay.marker.addListener('mouseover', function() {
|
relay.showMarker = function() {
|
||||||
relay.marker.info.open($scope.map, relay.marker);
|
relay.marker.info.open($scope.map, relay.marker);
|
||||||
});
|
}
|
||||||
|
|
||||||
relay.marker.addListener('mouseout', function() {
|
relay.hideMarker = function() {
|
||||||
relay.marker.info.close();
|
relay.marker.info.close();
|
||||||
});
|
}
|
||||||
|
|
||||||
|
relay.marker.addListener('mouseover', relay.showMarker);
|
||||||
|
relay.marker.addListener('mouseout', relay.hideMarker);
|
||||||
|
|
||||||
$scope.mapBounds.extend(relay.marker.position);
|
$scope.mapBounds.extend(relay.marker.position);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user