server/bo_client/app/components/bo-doc-contributors.js
author durandn
Tue, 15 Dec 2015 10:40:00 +0100
changeset 24 de47e8f66e8b
parent 20 a9b98b16b053
permissions -rw-r--r--
Added command "corpus-parole:indexDocuments" to index documents into ElasticSearch

import Ember from 'ember';
import _ from 'lodash/lodash';

export default Ember.Component.extend({

  actions: {
    toggleEditContributors : function() {
      console.log("EDIT CONTRIBUTORS");
      // var contributors = _.clone(this.get('document').get('contributors'));
      // console.log("EDIT CONTRIBUTPRS", contributors);
      // contributors.push({
      //   name: "Hello world",
      //   url: null,
      //   role: 'http://www.language-archives.org/OLAC/1.1/annotator'
      // });
      // this.get('document').set('contributors', contributors);
      Ember.$('#doc-contributors-table-pane').slideToggle();
      Ember.$('#doc-contributors-list-pane').slideToggle();
    }
  }
});