<commit_before>import Ember from 'ember';
import Translate3dMixin from '../mixins/translate3d-mixin';
import PaperDialog from './paper-dialog';

const { Component, computed } = Ember;

export default Component.extend(Translate3dMixin, {
  tagName: 'md-dialog',
  classNames: ['md-default-theme'],
  classNameBindings: ['contentOverflow:md-content-overflow', 'fullscreen:md-dialog-fullscreen'],

  dialogComponent: computed(function() {
    return this.nearestOfType(PaperDialog);
  }),

  translateFromOrigin: computed.reads('dialogComponent.openFrom'),

  translateToParent: computed.reads('dialogComponent.closeTo'),

  onTranslateDestroy(origin) {
    origin.focus();
  },

  click(ev) {
    if (this.get('dialogComponent.clickOutsideToClose')) {
      ev.stopPropagation();
      return false;
    }
  }

});
<commit_msg>Temporarily disable dialog transitions (broken, prevents operation). Reverse when transitions work.<commit_after>import Ember from 'ember';
import Translate3dMixin from '../mixins/translate3d-mixin';
import PaperDialog from './paper-dialog';

const { Component, computed } = Ember;

export default Component.extend(/*Translate3dMixin, TODO */ {
  tagName: 'md-dialog',
  classNames: ['md-default-theme'     , 'md-transition-in'     /* TODO */ ],
  classNameBindings: ['contentOverflow:md-content-overflow', 'fullscreen:md-dialog-fullscreen'],

  dialogComponent: computed(function() {
    return this.nearestOfType(PaperDialog);
  }),

  translateFromOrigin: computed.reads('dialogComponent.openFrom'),

  translateToParent: computed.reads('dialogComponent.closeTo'),

  onTranslateDestroy(origin) {
    origin.focus();
  },

  click(ev) {
    if (this.get('dialogComponent.clickOutsideToClose')) {
      ev.stopPropagation();
      return false;
    }
  }

});

{'fraction_non_alphanumeric': 0.13989927252378287, 'fraction_numerical': 0.003357582540570789, 'mean_word_length': 4.7491961414791, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4923471', 'n_tokens_mistral': 545, 'n_tokens_neox': 526, 'n_words': 97}