mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Globally exported all stores when developer mode is enabled
This commit is contained in:
@@ -156,3 +156,7 @@ AdminStoreClass.dispatchToken = AppDispatcher.register((payload) => {
|
||||
});
|
||||
|
||||
export default AdminStore;
|
||||
|
||||
if (window.mm_config.EnableDeveloper === 'true') {
|
||||
window.AdminStore = AdminStore;
|
||||
}
|
||||
|
||||
@@ -83,3 +83,7 @@ AnalyticsStore.dispatchToken = AppDispatcher.register((payload) => {
|
||||
});
|
||||
|
||||
export default AnalyticsStore;
|
||||
|
||||
if (window.mm_config.EnableDeveloper === 'true') {
|
||||
window.AnalyticsStore = AnalyticsStore;
|
||||
}
|
||||
|
||||
@@ -350,3 +350,7 @@ ChannelStore.dispatchToken = AppDispatcher.register((payload) => {
|
||||
});
|
||||
|
||||
export default ChannelStore;
|
||||
|
||||
if (window.mm_config.EnableDeveloper === 'true') {
|
||||
window.ChannelStore = ChannelStore;
|
||||
}
|
||||
|
||||
@@ -57,4 +57,9 @@ class FileStore extends EventEmitter {
|
||||
}
|
||||
}
|
||||
|
||||
export default new FileStore();
|
||||
const instance = new FileStore();
|
||||
export default instance;
|
||||
|
||||
if (window.mm_config.EnableDeveloper === 'true') {
|
||||
window.FileStore = instance;
|
||||
}
|
||||
|
||||
@@ -45,3 +45,7 @@ class ModalStoreClass extends EventEmitter {
|
||||
|
||||
const ModalStore = new ModalStoreClass();
|
||||
export default ModalStore;
|
||||
|
||||
if (window.mm_config.EnableDeveloper === 'true') {
|
||||
window.ModalStore = ModalStore;
|
||||
}
|
||||
|
||||
@@ -608,3 +608,7 @@ function isPostListNull(pl) {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if (window.mm_config.EnableDeveloper === 'true') {
|
||||
window.PostStore = PostStore;
|
||||
}
|
||||
|
||||
@@ -135,3 +135,7 @@ SearchStore.dispatchToken = AppDispatcher.register((payload) => {
|
||||
});
|
||||
|
||||
export default SearchStore;
|
||||
|
||||
if (window.mm_config.EnableDeveloper === 'true') {
|
||||
window.SearchStore = SearchStore;
|
||||
}
|
||||
|
||||
@@ -258,4 +258,9 @@ class SuggestionStore extends EventEmitter {
|
||||
}
|
||||
}
|
||||
|
||||
export default new SuggestionStore();
|
||||
const instance = new SuggestionStore();
|
||||
export default instance;
|
||||
|
||||
if (window.mm_config.EnableDeveloper === 'true') {
|
||||
window.SuggestionStore = instance;
|
||||
}
|
||||
|
||||
@@ -126,3 +126,7 @@ TeamStore.dispatchToken = AppDispatcher.register((payload) => {
|
||||
});
|
||||
|
||||
export default TeamStore;
|
||||
|
||||
if (window.mm_config.EnableDeveloper === 'true') {
|
||||
window.TeamStore = TeamStore;
|
||||
}
|
||||
|
||||
@@ -325,3 +325,7 @@ UserStore.dispatchToken = AppDispatcher.register((payload) => {
|
||||
});
|
||||
|
||||
export {UserStore as default};
|
||||
|
||||
if (window.mm_config.EnableDeveloper === 'true') {
|
||||
window.UserStore = UserStore;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user