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:
Igor Octaviano 2021-05-13 22:15:59 -03:00 committed by GitHub
commit 3b6c6374e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,7 @@ window.config = {
extensions: [],
showStudyList: true,
filterQueryParam: false,
disableServersCache: false,
servers: {
dicomWeb: [
{

View File

@ -24,6 +24,10 @@ const preloadedState = {
...sessionStorage.loadState(),
};
if (window.config && window.config.disableServersCache === true) {
delete preloadedState.servers;
}
const store = createStore(
rootReducer,
preloadedState,