Index: runtime/observatory/lib/src/elements/field_view.html |
diff --git a/runtime/observatory/lib/src/elements/field_view.html b/runtime/observatory/lib/src/elements/field_view.html |
index 2a9d728343902c0c98a299e7f1d67532cad1d429..cad31aa860e84456d9b260c30e05f2f487d9d317 100644 |
--- a/runtime/observatory/lib/src/elements/field_view.html |
+++ b/runtime/observatory/lib/src/elements/field_view.html |
@@ -12,12 +12,9 @@ |
<nav-bar> |
<top-nav-menu></top-nav-menu> |
<isolate-nav-menu isolate="{{ field.isolate }}"></isolate-nav-menu> |
- <template if="{{ field.owner.type == 'Class' }}"> |
- <!-- TODO(turnidge): Add library nav menu here. --> |
- <class-nav-menu cls="{{ field.owner }}"></class-nav-menu> |
- </template> |
- <template if="{{ field.owner.type == 'Library' }}"> |
- <library-nav-menu library="{{ field.owner }}"></library-nav-menu> |
+ <library-nav-menu library="{{ field.library }}"></library-nav-menu> |
+ <template if="{{ field.dartOwner is ServiceClass }}"> |
+ <class-nav-menu cls="{{ field.dartOwner }}"></class-nav-menu> |
</template> |
<nav-menu link="{{ makeLink('/inspect', field) }}" anchor="{{ field.name }}" last="{{ true }}"></nav-menu> |
<nav-refresh callback="{{ refresh }}"></nav-refresh> |
@@ -42,12 +39,7 @@ |
<div class="memberItem"> |
<div class="memberName">owner</div> |
<div class="memberValue"> |
- <template if="{{ field.owner.type == 'Class' }}"> |
- <class-ref ref="{{ field.owner }}"></class-ref> |
- </template> |
- <template if="{{ field.owner.type != 'Class' }}"> |
- <library-ref ref="{{ field.owner }}"></library-ref> |
- </template> |
+ <any-service-ref ref="{{ function.dartOwner }}"></any-service-ref> |
</div> |
</div> |
<div class="memberItem"> |