Index: runtime/observatory/lib/src/elements/nav_bar.dart |
diff --git a/runtime/observatory/lib/src/elements/nav_bar.dart b/runtime/observatory/lib/src/elements/nav_bar.dart |
index b3ec261cad5a7f309935d0525b786fe559afe85a..b523c557d4b1e55660fac05921110bf595680282 100644 |
--- a/runtime/observatory/lib/src/elements/nav_bar.dart |
+++ b/runtime/observatory/lib/src/elements/nav_bar.dart |
@@ -4,10 +4,8 @@ |
library nav_bar_element; |
-import 'dart:html' hide Notification; |
import 'observatory_element.dart'; |
import 'package:observatory/service.dart'; |
-import 'package:observatory/app.dart' show Notification; |
import 'package:polymer/polymer.dart'; |
@CustomTag('library-nav-menu') |
@@ -25,52 +23,3 @@ class ClassNavMenuElement extends ObservatoryElement { |
ClassNavMenuElement.created() : super.created(); |
} |
- |
-@CustomTag('nav-notify') |
-class NavNotifyElement extends ObservatoryElement { |
- @published ObservableList<Notification> notifications; |
- @published bool notifyOnPause = true; |
- |
- NavNotifyElement.created() : super.created(); |
-} |
- |
-@CustomTag('nav-notify-event') |
-class NavNotifyEventElement extends ObservatoryElement { |
- @published ObservableList<Notification> notifications; |
- @published Notification notification; |
- @published ServiceEvent event; |
- @published bool notifyOnPause = true; |
- |
- void closeItem(MouseEvent e, var detail, Element target) { |
- notifications.remove(notification); |
- } |
- |
- NavNotifyEventElement.created() : super.created(); |
-} |
- |
-@CustomTag('nav-notify-exception') |
-class NavNotifyExceptionElement extends ObservatoryElement { |
- @published ObservableList<Notification> notifications; |
- @published Notification notification; |
- @published var exception; |
- @published var stacktrace; |
- |
- exceptionChanged() { |
- notifyPropertyChange(#isNetworkError, true, false); |
- notifyPropertyChange(#isUnexpectedError, true, false); |
- } |
- |
- @observable get isNetworkError { |
- return (exception is NetworkRpcException); |
- } |
- |
- @observable get isUnexpectedError { |
- return (exception is! NetworkRpcException); |
- } |
- |
- void closeItem(MouseEvent e, var detail, Element target) { |
- notifications.remove(notification); |
- } |
- |
- NavNotifyExceptionElement.created() : super.created(); |
-} |