mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
UI: Fix check for Mirage presence setting up sockets (#7497)
Without this, exec UI doesn’t work at all in the binary. I made an unfortunate error in not copying the environment check from app/utils/fetch.js.
This commit is contained in:
@@ -5,7 +5,9 @@ import { getOwner } from '@ember/application';
|
||||
export default Service.extend({
|
||||
getTaskStateSocket(taskState, command) {
|
||||
const mirageEnabled =
|
||||
config['ember-cli-mirage'] && config['ember-cli-mirage'].enabled !== false;
|
||||
config.environment !== 'production' &&
|
||||
config['ember-cli-mirage'] &&
|
||||
config['ember-cli-mirage'].enabled !== false;
|
||||
|
||||
if (mirageEnabled) {
|
||||
return new Object({
|
||||
|
||||
Reference in New Issue
Block a user