Commit f9185c48 authored by Ioannis Tsafaras's avatar Ioannis Tsafaras
Browse files

Message dismiss time as a config variable

parent a9d290e5
......@@ -38,6 +38,7 @@ module.exports = function(environment) {
ENV.refresh_interval = 2000;
ENV.redirect_delay = 3000;
ENV.message_dismiss = 4000;
if (environment === 'development') {
// ENV.APP.LOG_RESOLVER = true;
......
import Ember from "ember";
import ENV from 'frontend/config/environment';
export default Ember.Controller.extend({
failure: false,
......@@ -9,14 +10,14 @@ export default Ember.Controller.extend({
Ember.run.later((function () {
_this.store.unloadAll('lambda-instance');
_this.set("request", false);
}), 2000);
}), ENV.message_dismiss);
},
start_stop: function()
{
var _this = this;
Ember.run.later((function () {
_this.set("request", false);
}), 4000);
}), ENV.message_dismiss);
},
close_alert: function()
{
......
import Ember from "ember";
import ENV from 'frontend/config/environment';
export default Ember.Controller.extend({
actions: {
......@@ -18,7 +19,7 @@ export default Ember.Controller.extend({
Ember.run.later((function () {
_this.set("request", false);
_this.set("app_request", false);
}), 4000);
}), ENV.message_dismiss);
},
withdraw: function()
{
......@@ -27,7 +28,7 @@ export default Ember.Controller.extend({
_this.store.unloadAll('lambda-app');
_this.set("request", false);
_this.set("app_request", false);
}), 3000);
}), ENV.message_dismiss);
},
}
});
import Ember from 'ember';
import pagedArray from 'ember-cli-pagination/computed/paged-array';
import ENV from 'frontend/config/environment';
export default Ember.ArrayController.extend({
queryParams: ["page", "perPage"],
......@@ -28,7 +29,7 @@ export default Ember.ArrayController.extend({
var _this = this;
Ember.run.later((function () {
_this.set("request", false);
}), 4000);
}), ENV.message_dismiss);
},
close_alert: function()
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment