Make footer GWT UI link configurable

Change-Id: I8527fe876d4ccdc9244ad93bb58fbb60d179758d
This commit is contained in:
Viktar Donich 2018-05-22 14:56:42 -07:00
parent 90163dec7c
commit 062c3c9bfe
2 changed files with 4 additions and 1 deletions

View File

@ -197,7 +197,8 @@
},
_computeShowGwtUiLink(config) {
return config.gerrit.web_uis && config.gerrit.web_uis.includes('GWT');
return !window.DEPRECATE_GWT_UI &&
config.gerrit.web_uis && config.gerrit.web_uis.includes('GWT');
},
_handlePageError(e) {

View File

@ -21,6 +21,7 @@
* @param staticResourcePath
* @param? faviconPath
* @param? versionInfo
* @param? deprecateGwtUi
*/
{template .Index}
<!DOCTYPE html>{\n}
@ -32,6 +33,7 @@
<script>
window.CLOSURE_NO_DEPS = true;
{if $canonicalPath != ''}window.CANONICAL_PATH = '{$canonicalPath}';{/if}
{if $deprecateGwtUi}window.DEPRECATE_GWT_UI = true;{/if}
{if $versionInfo}window.VERSION_INFO = '{$versionInfo}';{/if}
{if $staticResourcePath != ''}window.STATIC_RESOURCE_PATH = '{$staticResourcePath}';{/if}
</script>{\n}