Deprecate ModalBodyview
This commit is contained in:
parent
a0f1090d79
commit
742f01f82c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue