Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: web/inc/logdog-stream-view/view.ts

Issue 2860453003: LogDog Viewer: Link back to source build. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: web/inc/logdog-stream-view/view.ts
diff --git a/web/inc/logdog-stream-view/view.ts b/web/inc/logdog-stream-view/view.ts
index 5165a36e26bbd7b6086cda6ddb15a91bcd00838c..29841eac30a6208751e206d0ca3cae33d041e5c6 100644
--- a/web/inc/logdog-stream-view/view.ts
+++ b/web/inc/logdog-stream-view/view.ts
@@ -51,6 +51,8 @@ namespace LogDog {
bottom: boolean;
/** Is the content fully loaded? */
fullyLoaded: boolean;
+ /** If not null, link to this URL for the log stream. */
nodir 2017/05/03 15:36:52 null is not the same as undefined though
dnj 2017/05/03 15:40:43 Ah crap, used to be null, then decided undefined w
+ logStreamUrl: string | undefined;
/** Text in the status bar. */
loadingState: LoadingState;
@@ -80,6 +82,7 @@ namespace LogDog {
// Polymer properties.
streams: string[];
+ streamLinkUrl: string | undefined;
mobile: boolean;
isSplit: boolean;
metadata: boolean;
@@ -462,6 +465,7 @@ namespace LogDog {
this.comp._setIsSplit(c.split);
this.comp._updateSplitVisible(c.split && this.renderedLogs);
this.comp._updateBottomVisible(c.bottom && this.renderedLogs);
+ this.comp.streamLinkUrl = c.logStreamUrl;
this.comp._setShowStreamingControls(this.renderedLogs && !c.fullyLoaded);
if (c.fullyLoaded) {

Powered by Google App Engine
This is Rietveld 408576698