fix: 🐛 Add feature flag for BYOW (#1250)

This commit is contained in:
Zhihe Li authored and GitHub committed 2022-08-11 13:47:22 -04:00
1 parent 6f2a04d4c6
commit 1842631056
2 files changed
+9 -1

No files matched your search

+6 -1
View File
@@ -22,7 +22,12 @@
{{t 'resources.org.title_plural'}}
</nav.link>
</Rose::Nav::Sidebar>
{{#if (can 'navigate worker' @model collection='workers')}}
{{#if
(and
(can 'navigate worker' @model collection='workers')
(feature-flag 'byow')
)
}}
<Rose::Nav::Sidebar
@title={{t 'resources.worker.title_plural'}}
as |nav|
+3
View File
@@ -15,6 +15,7 @@ const featureEditions = {
filter: true,
'managed-groups': true,
'static-credentials': false,
byow: false,
},
};
featureEditions.enterprise = {
@@ -129,6 +130,7 @@ module.exports = function (environment) {
// Enable features in development
ENV.featureFlags['ssh-target'] = false;
ENV.featureFlags['static-credentials'] = true;
ENV.featureFlags['byow'] = true;
}
if (environment === 'test') {
@@ -149,6 +151,7 @@ module.exports = function (environment) {
// Enable tests for development features
ENV.featureFlags['ssh-target'] = true;
ENV.featureFlags['static-credentials'] = true;
ENV.featureFlags['byow'] = true;
}
if (environment === 'production') {