blob: 7d0d310c2ffc050fd1a733b07a0936bbd65ca07a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import { observable } from 'mobx';
export { default as Component } from './Component';
const debug = require('debug')('Ferdi:feature:publishDebugInfo');
const defaultState = {
isModalVisible: false,
};
export const state = observable(defaultState);
export default function initialize() {
debug('Initialize publishDebugInfo feature');
function showModal() {
state.isModalVisible = true;
}
window.ferdi.features.publishDebugInfo = {
state,
showModal,
};
}
|