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

Unified Diff: ui/file_manager/file_manager/foreground/elements/files_quick_view.js

Issue 2634053002: Show open task button only when applicable. (Closed)
Patch Set: Rebase. Created 3 years, 11 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: ui/file_manager/file_manager/foreground/elements/files_quick_view.js
diff --git a/ui/file_manager/file_manager/foreground/elements/files_quick_view.js b/ui/file_manager/file_manager/foreground/elements/files_quick_view.js
index c551cd52777480bcfa84d1b1a9538b6706f78a75..a3096bbfcce60fb70e11b4df662bb22187c599df 100644
--- a/ui/file_manager/file_manager/foreground/elements/files_quick_view.js
+++ b/ui/file_manager/file_manager/foreground/elements/files_quick_view.js
@@ -9,6 +9,8 @@ var FilesQuickView = Polymer({
// File media type, e.g. image, video.
type: String,
filePath: String,
+ // If there is a task to open the file.
+ hasTask: Boolean,
// URLs should be accessible from webview since contets are rendered inside
// it. Hint: use URL.createObjectURL.
contentUrl: String,
@@ -41,6 +43,7 @@ var FilesQuickView = Polymer({
clear: function() {
this.type = '';
this.filePath = '';
+ this.hasTask = false;
this.contentUrl = '';
this.videoPoster = '';
this.audioArtwork = '';

Powered by Google App Engine
This is Rietveld 408576698