From e90065881d47a64b6c376208ece208932711c765 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 14 Sep 2015 17:20:51 +0200 Subject: Bring back the share icon and update its status Display share icon in file list row. Update share icon status when the sharing state changed. --- apps/files/js/filelist.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'apps/files') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 194c658e3a1..699df691bbc 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -367,6 +367,20 @@ return model; }, + /** + * Displays the details view for the given file and + * selects the given tab + * + * @param {string} fileName file name for which to show details + * @param {string} [tabId] optional tab id to select + */ + showDetailsView: function(fileName, tabId) { + this._updateDetailsView(fileName); + if (tabId) { + this._detailsView.selectTab(tabId); + } + }, + /** * Update the details view to display the given file * -- cgit v1.2.3 From e7e0cfe93d1e7050f35a4b78c9fc70dbe32ec397 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 15 Sep 2015 17:08:04 +0200 Subject: Properly show sidebar when clicking on share button --- apps/files/js/filelist.js | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/files') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 699df691bbc..23834fa44de 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -379,6 +379,7 @@ if (tabId) { this._detailsView.selectTab(tabId); } + OC.Apps.showAppSidebar(); }, /** -- cgit v1.2.3