소스 검색

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

This reverts commit 565b122c888a804ed3e3f58a43d4d80442865d14.
Jaimin Jetly 9 년 전
부모
커밋
5738dd4cbf

+ 0 - 14
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) {

+ 0 - 8
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>

+ 0 - 1
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",