refactor: 💡 confirmations should be enabled by default
This commit is contained in:
4 files changed
+8
-3
No files matched your search
@@ -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") {
|
||||
|
||||
@@ -36,7 +36,6 @@ module.exports = function (environment) {
|
||||
|
||||
notifyTimeout: 4000,
|
||||
sessionPollingTimeoutSeconds: 2.5,
|
||||
enableConfirmService: true,
|
||||
|
||||
documentation: {
|
||||
baseURL: 'https://boundaryproject.io/help/admin-ui',
|
||||
|
||||
@@ -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') {
|
||||
|
||||
Reference in new issue
Block a user