Deprecate ModalBodyview

This commit is contained in:
Robin Ward 2016-11-17 14:00:37 -05:00
parent a0f1090d79
commit 742f01f82c
1 changed files with 7 additions and 3 deletions

View File

@ -1,10 +1,14 @@
import { observes, on } from "ember-addons/ember-computed-decorators"; import { observes } from "ember-addons/ember-computed-decorators";
import deprecated from 'discourse-common/lib/deprecated';
export default Ember.View.extend({ export default Ember.View.extend({
focusInput: true, focusInput: true,
@on("didInsertElement") didInsertElement() {
_setupModal() { this._super();
deprecated('ModalBodyView is deprecated. Use the `d-modal-body` component instead');
$('#modal-alert').hide(); $('#modal-alert').hide();
$('#discourse-modal').modal('show'); $('#discourse-modal').modal('show');
Ember.run.scheduleOnce('afterRender', this, this._afterFirstRender); Ember.run.scheduleOnce('afterRender', this, this._afterFirstRender);