Mercurial > hg > orthanc
diff OrthancExplorer/explorer.js @ 3533:2090ec6a83a5
create a default user if none is provided, while issuing a warning in Orthanc Explorer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 04 Oct 2019 17:41:43 +0200 |
parents | 1a65beb5e52f |
children | cac8ffcb9cef |
line wrap: on
line diff
--- a/OrthancExplorer/explorer.js Thu Oct 03 13:44:08 2019 +0200 +++ b/OrthancExplorer/explorer.js Fri Oct 04 17:41:43 2019 +0200 @@ -79,6 +79,11 @@ $tree.tree('openNode', event.node, true); } ); + + // Inject the template of the warning about insecure setup as the + // first child of each page + var insecure = $('#template-insecure').html(); + $('[data-role="page"]>[data-role="content"]').prepend(insecure); currentPage = $.mobile.pageData.active; currentUuid = $.mobile.pageData.uuid; @@ -388,6 +393,14 @@ .text(s.Name) .append(' » ')); } + + // New in Orthanc 1.5.8 + if ('IsDefaultUser' in s && + s.IsDefaultUser) { + $('.warning-insecure').show(); + } else { + $('.warning-insecure').hide(); + } } }); });