fix(@cockpit/utils): properly detect if ENS is enabled

With the move of Embark's modules into their own packages, the names under
which they are registered in the API service have changed as well.

This caused Cockpit to no longer being able to properly detect whether
ENS is enabled in the current Embark project
This commit is contained in:
Pascal Precht 2019-05-22 12:54:58 +02:00 committed by Pascal Precht
parent 3aca2fe17b
commit 7a0609b66c

View File

@ -170,7 +170,7 @@ export function getEnsErrors(state) {
} }
export function isEnsEnabled(state) { export function isEnsEnabled(state) {
return Boolean(state.entities.plugins.find((plugin) => plugin.name === 'ens')); return Boolean(state.entities.plugins.find((plugin) => plugin.name === 'embark-ens'));
} }
export function getFiles(state) { export function getFiles(state) {