FIX: Presence mixin was missing sometimes

This commit is contained in:
Régis Hanol 2015-05-12 10:49:05 +02:00
parent 0c85e40097
commit ab80240900
10 changed files with 17 additions and 14 deletions

View File

@ -1,7 +1,6 @@
import Presence from 'discourse/mixins/presence';
import { outputExportResult } from 'discourse/lib/export-result';
export default Ember.ArrayController.extend(Presence, {
export default Ember.ArrayController.extend({
loading: false,
actions: {

View File

@ -1,7 +1,6 @@
import Presence from 'discourse/mixins/presence';
import { outputExportResult } from 'discourse/lib/export-result';
export default Ember.ArrayController.extend(Presence, {
export default Ember.ArrayController.extend({
loading: false,
itemController: 'admin-log-screened-ip-address',
filter: null,

View File

@ -1,7 +1,6 @@
import Presence from 'discourse/mixins/presence';
import { outputExportResult } from 'discourse/lib/export-result';
export default Ember.ArrayController.extend(Presence, {
export default Ember.ArrayController.extend({
loading: false,
show() {

View File

@ -1,7 +1,6 @@
import Presence from 'discourse/mixins/presence';
import { outputExportResult } from 'discourse/lib/export-result';
export default Ember.ArrayController.extend(Presence, {
export default Ember.ArrayController.extend({
loading: false,
filters: null,

View File

@ -1,8 +1,9 @@
import Presence from 'discourse/mixins/presence';
import ModalFunctionality from 'discourse/mixins/modal-functionality';
import ObjectController from 'discourse/controllers/object';
// Modal related to changing the ownership of posts
export default ObjectController.extend(Discourse.SelectedPostsCount, ModalFunctionality, {
export default ObjectController.extend(Presence, Discourse.SelectedPostsCount, ModalFunctionality, {
needs: ['topic'],
topicController: Em.computed.alias('controllers.topic'),

View File

@ -1,4 +1,6 @@
export default Ember.ObjectController.extend({
import Presence from 'discourse/mixins/presence';
export default Ember.ObjectController.extend(Presence, {
needs: ['modal', 'topic', 'composer-messages', 'application'],
replyAsNewTopicDraft: Em.computed.equal('model.draftKey', Discourse.Composer.REPLY_AS_NEW_TOPIC_KEY),

View File

@ -1,7 +1,8 @@
import Presence from 'discourse/mixins/presence';
import ModalFunctionality from 'discourse/mixins/modal-functionality';
import ObjectController from 'discourse/controllers/object';
export default ObjectController.extend(ModalFunctionality, {
export default ObjectController.extend(Presence, ModalFunctionality, {
needs: ['user-invited'],
// If this isn't defined, it will proxy to the user model on the preferences

View File

@ -1,8 +1,9 @@
import Presence from 'discourse/mixins/presence';
import ModalFunctionality from 'discourse/mixins/modal-functionality';
import ObjectController from 'discourse/controllers/object';
// Modal related to merging of topics
export default ObjectController.extend(Discourse.SelectedPostsCount, ModalFunctionality, {
export default ObjectController.extend(Discourse.SelectedPostsCount, ModalFunctionality, Presence, {
needs: ['topic'],
topicController: Em.computed.alias('controllers.topic'),

View File

@ -1,6 +1,7 @@
import Presence from 'discourse/mixins/presence';
import ObjectController from 'discourse/controllers/object';
export default ObjectController.extend({
export default ObjectController.extend(Presence, {
taken: false,
saving: false,
error: false,

View File

@ -1,8 +1,9 @@
import Presence from 'discourse/mixins/presence';
import ModalFunctionality from 'discourse/mixins/modal-functionality';
import ObjectController from 'discourse/controllers/object';
// Modal related to auto closing of topics
export default ObjectController.extend(Discourse.SelectedPostsCount, ModalFunctionality, {
export default ObjectController.extend(Discourse.SelectedPostsCount, ModalFunctionality, Presence, {
needs: ['topic'],
topicController: Em.computed.alias('controllers.topic'),