diff options
Diffstat (limited to 'src/features/publishDebugInfo/index.ts')
-rw-r--r-- | src/features/publishDebugInfo/index.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/features/publishDebugInfo/index.ts b/src/features/publishDebugInfo/index.ts new file mode 100644 index 000000000..43841b530 --- /dev/null +++ b/src/features/publishDebugInfo/index.ts | |||
@@ -0,0 +1,19 @@ | |||
1 | import { state as ModalState } from './store'; | ||
2 | |||
3 | export { default as Component } from './Component'; | ||
4 | |||
5 | const state = ModalState; | ||
6 | const debug = require('debug')('Ferdi:feature:publishDebugInfo'); | ||
7 | |||
8 | export default function initialize() { | ||
9 | debug('Initialize publishDebugInfo feature'); | ||
10 | |||
11 | function showModal() { | ||
12 | state.isModalVisible = true; | ||
13 | } | ||
14 | |||
15 | window['ferdi'].features.publishDebugInfo = { | ||
16 | state, | ||
17 | showModal, | ||
18 | }; | ||
19 | } | ||