Merge pull request #2409 from OHIF/feat/add-option-to-disable-servers-cache
IDC: Add option to disable local storage of servers
This commit is contained in:
2 files changed
+5
No files matched your search
@@ -4,6 +4,7 @@ window.config = {
|
||||
extensions: [],
|
||||
showStudyList: true,
|
||||
filterQueryParam: false,
|
||||
disableServersCache: false,
|
||||
servers: {
|
||||
dicomWeb: [
|
||||
{
|
||||
|
||||
@@ -24,6 +24,10 @@ const preloadedState = {
|
||||
...sessionStorage.loadState(),
|
||||
};
|
||||
|
||||
if (window.config && window.config.disableServersCache === true) {
|
||||
delete preloadedState.servers;
|
||||
}
|
||||
|
||||
const store = createStore(
|
||||
rootReducer,
|
||||
preloadedState,
|
||||
|
||||
Reference in new issue
Block a user