You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ja...@apache.org on 2016/03/29 23:40:36 UTC

ambari git commit: Revert "AMBARI-15598. Introduce "Copy Path to clipboard" feature for Files browser view UI (pallavkul)"

Repository: ambari
Updated Branches:
  refs/heads/branch-2.2 565b122c8 -> 9b21a6356


Revert "AMBARI-15598. Introduce "Copy Path to clipboard" feature for Files browser view UI (pallavkul)"

This reverts commit 565b122c888a804ed3e3f58a43d4d80442865d14.


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9b21a635
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9b21a635
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9b21a635

Branch: refs/heads/branch-2.2
Commit: 9b21a635665cf3e4eecd6deac84f2264dba2f002
Parents: 565b122
Author: Jaimin Jetly <ja...@hortonworks.com>
Authored: Tue Mar 29 14:36:47 2016 -0700
Committer: Jaimin Jetly <ja...@hortonworks.com>
Committed: Tue Mar 29 14:36:47 2016 -0700

----------------------------------------------------------------------
 .../src/main/resources/ui/app/controllers/files.js    | 14 --------------
 .../src/main/resources/ui/app/templates/files.hbs     |  8 --------
 .../views/files/src/main/resources/ui/package.json    |  1 -
 3 files changed, 23 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/9b21a635/contrib/views/files/src/main/resources/ui/app/controllers/files.js
----------------------------------------------------------------------
diff --git a/contrib/views/files/src/main/resources/ui/app/controllers/files.js b/contrib/views/files/src/main/resources/ui/app/controllers/files.js
index 8b5bb7b..9fc11b6 100644
--- a/contrib/views/files/src/main/resources/ui/app/controllers/files.js
+++ b/contrib/views/files/src/main/resources/ui/app/controllers/files.js
@@ -83,20 +83,6 @@ export default Ember.Controller.extend({
     return this.get('sortedContent');
   }),
 
-  selectedFilePathsText: function () {
-    var entities = this.get('fileSelectionService.files');
-    var multiplePaths = [];
-
-    if (entities.length === 0) {
-      return this.get('path');
-    } else {
-      multiplePaths = entities.map((entity) => {
-        return entity.get('path');
-      });
-      return multiplePaths.join(', ');
-    }
-  }.property('fileSelectionService.files.[]', 'path'),
-
   actions: {
     sortFiles: function(sortColumn) {
       if (sortColumn['sortOrder'] !== 0) {

http://git-wip-us.apache.org/repos/asf/ambari/blob/9b21a635/contrib/views/files/src/main/resources/ui/app/templates/files.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/files/src/main/resources/ui/app/templates/files.hbs b/contrib/views/files/src/main/resources/ui/app/templates/files.hbs
index 63e0dd8..3e178bc 100644
--- a/contrib/views/files/src/main/resources/ui/app/templates/files.hbs
+++ b/contrib/views/files/src/main/resources/ui/app/templates/files.hbs
@@ -42,14 +42,6 @@
       {{#if hasTrashPath}}
         {{#link-to 'files' (query-params path=trashPath) class="btn btn-sm btn-default"}}{{fa-icon "trash"}}{{/link-to}}
       {{/if}}
-      {{#copy-button
-        clipboardText=selectedFilePathsText
-        success="success"
-        error="error"
-        class="btn btn-sm btn-default"
-        }}
-          <i class="fa fa-clipboard"></i>
-      {{/copy-button}}
       <a href="#" {{action 'refreshCurrentRoute'}} class="btn btn-sm btn-default">{{fa-icon "refresh"}}</a>
       {{files-breadcrumb path=path}}
     </div>

http://git-wip-us.apache.org/repos/asf/ambari/blob/9b21a635/contrib/views/files/src/main/resources/ui/package.json
----------------------------------------------------------------------
diff --git a/contrib/views/files/src/main/resources/ui/package.json b/contrib/views/files/src/main/resources/ui/package.json
index d15c5c9..8250489 100644
--- a/contrib/views/files/src/main/resources/ui/package.json
+++ b/contrib/views/files/src/main/resources/ui/package.json
@@ -39,7 +39,6 @@
     "ember-cli-release": "0.2.8",
     "ember-cli-sri": "^2.0.0",
     "ember-cli-uglify": "^1.2.0",
-    "ember-cli-clipboard": "^0.3.1",
     "ember-collection": "git://github.com/emberjs/ember-collection.git#bf752508a501161791e3f3b9a546c9b97d5c387a",
     "ember-data": "2.3.0",
     "ember-disable-proxy-controllers": "^1.0.1",