Make footer GWT UI link configurable
Change-Id: I8527fe876d4ccdc9244ad93bb58fbb60d179758d
This commit is contained in:
parent
90163dec7c
commit
062c3c9bfe
|
@ -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) {
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue