import Ember from 'ember';

export default Ember.Component.extend({
  isEditing: false,

  actions: {
    toggleEditLocation: function() {
      // 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);
      this.set('isEditing', !this.get('isEditing'));
      // this.$('#doc-contributors-table-pane').slideToggle();
      // this.$('#doc-contributors-list-pane').slideToggle();
    }
  }

});
