Index: runtime/observatory/lib/src/elements/ports.dart |
diff --git a/runtime/observatory/lib/src/elements/ports.dart b/runtime/observatory/lib/src/elements/ports.dart |
index 183b686782b58f2e0a07864334f19b7ff5683675..1bb463132e5ce0c5148fc42eca012e0efe0ca982 100644 |
--- a/runtime/observatory/lib/src/elements/ports.dart |
+++ b/runtime/observatory/lib/src/elements/ports.dart |
@@ -6,13 +6,13 @@ import 'dart:html'; |
import 'dart:async'; |
import 'package:observatory/models.dart' as M; |
import 'package:observatory/src/elements/helpers/any_ref.dart'; |
+import 'package:observatory/src/elements/helpers/nav_bar.dart'; |
+import 'package:observatory/src/elements/helpers/nav_menu.dart'; |
import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; |
import 'package:observatory/src/elements/helpers/tag.dart'; |
import 'package:observatory/src/elements/helpers/uris.dart'; |
import 'package:observatory/src/elements/instance_ref.dart'; |
-import 'package:observatory/src/elements/nav/bar.dart'; |
import 'package:observatory/src/elements/nav/isolate_menu.dart'; |
-import 'package:observatory/src/elements/nav/menu.dart'; |
import 'package:observatory/src/elements/nav/notify.dart'; |
import 'package:observatory/src/elements/nav/refresh.dart'; |
import 'package:observatory/src/elements/nav/top_menu.dart'; |
@@ -22,11 +22,9 @@ import 'package:observatory/src/elements/view_footer.dart'; |
class PortsElement extends HtmlElement implements Renderable { |
static const tag = const Tag<PortsElement>('ports-page', |
dependencies: const [ |
- NavBarElement.tag, |
NavTopMenuElement.tag, |
NavVMMenuElement.tag, |
NavIsolateMenuElement.tag, |
- NavMenuElement.tag, |
NavRefreshElement.tag, |
NavNotifyElement.tag, |
InstanceRefElement.tag, |
@@ -92,17 +90,15 @@ class PortsElement extends HtmlElement implements Renderable { |
void render() { |
children = [ |
- new NavBarElement(queue: _r.queue) |
- ..children = [ |
- new NavTopMenuElement(queue: _r.queue), |
- new NavVMMenuElement(_vm, _events, queue: _r.queue), |
- new NavIsolateMenuElement(_isolate, _events, queue: _r.queue), |
- new NavMenuElement('ports', link: Uris.ports(_isolate), last: true, |
- queue: _r.queue), |
- new NavRefreshElement(queue: _r.queue) |
- ..onRefresh.listen((_) => _refresh()), |
- new NavNotifyElement(_notifications, queue: _r.queue) |
- ], |
+ navBar([ |
+ new NavTopMenuElement(queue: _r.queue), |
+ new NavVMMenuElement(_vm, _events, queue: _r.queue), |
+ new NavIsolateMenuElement(_isolate, _events, queue: _r.queue), |
+ navMenu('ports'), |
+ new NavRefreshElement(queue: _r.queue) |
+ ..onRefresh.listen((_) => _refresh()), |
+ new NavNotifyElement(_notifications, queue: _r.queue) |
+ ]), |
new DivElement() |
..classes = ['content-centered'] |
..children = [ |