refactor: 💡 confirmations should be enabled by default

This commit is contained in:
Randall Morey committed 2020-12-08 12:27:41 -05:00
1 parent 7d0876b7ad
commit 9bfe3d530e
4 files changed
+8 -3

No files matched your search

+3 -1
View File
@@ -19,9 +19,11 @@ export default class ConfirmationsService extends Service {
/**
* When the confirm service is disabled, it always returns resolving promises.
* By default the service is enabled but it is useful to disable it for test
* purposes.
* @type {boolean}
*/
enabled = config.enableConfirmService;
enabled = config.enableConfirmService ?? true;
/**
* @type {Array}
@@ -39,7 +39,9 @@ module.exports = function (environment) {
'ember-cli-mirage': {
directory: '../api/mirage'
}
},
enableConfirmService: false
};
if (environment === "development") {
-1
View File
@@ -36,7 +36,6 @@ module.exports = function (environment) {
notifyTimeout: 4000,
sessionPollingTimeoutSeconds: 2.5,
enableConfirmService: true,
documentation: {
baseURL: 'https://boundaryproject.io/help/admin-ui',
+2
View File
@@ -70,6 +70,8 @@ module.exports = function (environment) {
// Notification timeout should be 0 for fast tests
ENV.notifyTimeout = 0;
ENV.enableConfirmService = false;
}
if (environment === 'production') {