|
@@ -29,8 +29,19 @@ App.MainAlertDefinitionsView = App.TableView.extend({
|
|
return this.get('controller.content');
|
|
return this.get('controller.content');
|
|
}.property('controller.content.@each'),
|
|
}.property('controller.content.@each'),
|
|
|
|
|
|
|
|
+ willInsertElement: function () {
|
|
|
|
+ if (!this.get('controller.showFilterConditionsFirstLoad')) {
|
|
|
|
+ this.clearFilterCondition();
|
|
|
|
+ }
|
|
|
|
+ this._super();
|
|
|
|
+ },
|
|
|
|
+
|
|
didInsertElement: function () {
|
|
didInsertElement: function () {
|
|
|
|
+ var self = this;
|
|
this.tooltipsUpdater();
|
|
this.tooltipsUpdater();
|
|
|
|
+ Em.run.next(function () {
|
|
|
|
+ self.set('isInitialRendering', false);
|
|
|
|
+ });
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -64,6 +75,12 @@ App.MainAlertDefinitionsView = App.TableView.extend({
|
|
|
|
|
|
sortView: sort.wrapperView,
|
|
sortView: sort.wrapperView,
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Define whether initial view rendering has finished
|
|
|
|
+ * @type {Boolean}
|
|
|
|
+ */
|
|
|
|
+ isInitialRendering: true,
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Sorting header for <label>alertDefinition.label</label>
|
|
* Sorting header for <label>alertDefinition.label</label>
|
|
* @type {Em.View}
|
|
* @type {Em.View}
|
|
@@ -455,6 +472,12 @@ App.MainAlertDefinitionsView = App.TableView.extend({
|
|
Em.run.next(this, function () {
|
|
Em.run.next(this, function () {
|
|
App.tooltip($(".enable-disable-button, .timeago"));
|
|
App.tooltip($(".enable-disable-button, .timeago"));
|
|
});
|
|
});
|
|
- }.observes('pageContent.@each')
|
|
|
|
|
|
+ }.observes('pageContent.@each'),
|
|
|
|
+
|
|
|
|
+ updateFilter: function (iColumn, value, type) {
|
|
|
|
+ if (!this.get('isInitialRendering')) {
|
|
|
|
+ this._super(iColumn, value, type);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
});
|
|
});
|