From f549d16a2ecc9a0a1f4d4919fa56d55175f43c9d Mon Sep 17 00:00:00 2001 From: fang Date: Wed, 11 Nov 2020 22:00:32 +0100 Subject: [PATCH] webterm: account for title oddity for terminal app --- pkg/interface/src/views/components/leap/Omnibox.js | 7 ++++++- pkg/interface/src/views/components/leap/OmniboxResult.js | 8 ++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/pkg/interface/src/views/components/leap/Omnibox.js b/pkg/interface/src/views/components/leap/Omnibox.js index 71107e615e..b6fc0fdac8 100644 --- a/pkg/interface/src/views/components/leap/Omnibox.js +++ b/pkg/interface/src/views/components/leap/Omnibox.js @@ -117,7 +117,12 @@ export class Omnibox extends Component { const { props } = this; this.setState({ results: this.initialResults(), query: '' }, () => { props.api.local.setOmnibox(); - if (defaultApps.includes(app.toLowerCase()) || app === 'profile' || app === 'Links' || app === 'home') { + if (defaultApps.includes(app.toLowerCase()) + || app === 'profile' + || app === 'Links' + || app === 'Terminal' + || app === 'home') + { props.history.push(link); } else { window.location.href = link; diff --git a/pkg/interface/src/views/components/leap/OmniboxResult.js b/pkg/interface/src/views/components/leap/OmniboxResult.js index 6bc2079b72..d394d549d2 100644 --- a/pkg/interface/src/views/components/leap/OmniboxResult.js +++ b/pkg/interface/src/views/components/leap/OmniboxResult.js @@ -30,8 +30,12 @@ export class OmniboxResult extends Component { const sigilFill = (this.state.hovered || (selected === link)) ? '#3a8ff7' : '#ffffff'; let graphic =
; - if (defaultApps.includes(icon.toLowerCase()) || icon.toLowerCase() === 'links') { - icon = (icon === 'Link') ? 'Links' : icon; + if (defaultApps.includes(icon.toLowerCase()) + || icon.toLowerCase() === 'links' + || icon.toLowerCase() === 'terminal') + { + icon = (icon === 'Link') ? 'Links' : + (icon === 'Terminal') ? 'Dojo' : icon; graphic = ; } else if (icon === 'logout') { graphic = ;