diff --git a/plugins/services/src/js/components/HighOrderServiceConfiguration.js b/plugins/services/src/js/components/HighOrderServiceConfiguration.js
index 5bfad96fd8..f182422906 100644
--- a/plugins/services/src/js/components/HighOrderServiceConfiguration.js
+++ b/plugins/services/src/js/components/HighOrderServiceConfiguration.js
@@ -1,7 +1,6 @@
import PropTypes from "prop-types";
import React from "react";
-import Framework from "#PLUGINS/services/src/js/structs/Framework";
import Pod from "../structs/Pod";
import PodConfigurationContainer
from "../containers/pod-configuration/PodConfigurationContainer";
@@ -17,7 +16,10 @@ const HighOrderServiceConfiguration = function(props) {
return ;
}
- if (service instanceof Framework) {
+ if (
+ service.getLabels().DCOS_PACKAGE_DEFINITION != null ||
+ service.getLabels().DCOS_PACKAGE_METADATA != null
+ ) {
return ;
}
diff --git a/plugins/services/src/js/components/modals/EditServiceModal.js b/plugins/services/src/js/components/modals/EditServiceModal.js
index d9951c586d..1f7afed820 100644
--- a/plugins/services/src/js/components/modals/EditServiceModal.js
+++ b/plugins/services/src/js/components/modals/EditServiceModal.js
@@ -4,7 +4,6 @@ import EditFrameworkConfiguration
from "#PLUGINS/services/src/js/pages/EditFrameworkConfiguration";
import CreateServiceModal
from "#PLUGINS/services/src/js/components/modals/CreateServiceModal";
-import Framework from "#PLUGINS/services/src/js/structs/Framework";
import DCOSStore from "#SRC/js/stores/DCOSStore";
class EditServiceModal extends Component {
@@ -13,7 +12,10 @@ class EditServiceModal extends Component {
const serviceID = decodeURIComponent(id);
const service = DCOSStore.serviceTree.findItemById(serviceID);
- if (service instanceof Framework) {
+ if (
+ service.getLabels().DCOS_PACKAGE_DEFINITION != null ||
+ service.getLabels().DCOS_PACKAGE_METADATA != null
+ ) {
return ;
}