Merge pull request #9542 from awanlin/topic/update-empty-flag

Updated EmptyFlags code example
This commit is contained in:
Patrik Oldsberg
2022-02-16 17:17:47 +01:00
committed by GitHub
2 changed files with 6 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-user-settings': patch
---
Updated example code for registering feature flags in the `EmptyFlags` component
@@ -22,9 +22,7 @@ const EXAMPLE = `import { createPlugin } from '@backstage/core-plugin-api';
export default createPlugin({
id: 'plugin-name',
register({ router, featureFlags }) {
featureFlags.register('enable-example-feature');
},
featureFlags: [{ name: 'enable-example-feature' }],
});
`;