leap: error trapping, fixes icon bug

This commit is contained in:
Tyler Brown Cifu Shuster 2020-10-02 09:58:40 -07:00
parent 5b678c1bf9
commit 02d74a4b19
2 changed files with 30 additions and 23 deletions

View File

@ -34,7 +34,7 @@ const commandIndex = function () {
title = title.charAt(0).toUpperCase() + title.slice(1);
let obj = result(`${title}: Create`, `/~${e}/new`, e, null);
let obj = result(`${title}: Create`, `/~${e}/new`, title, null);
commands.push(obj);
if (title === 'Groups') {

View File

@ -17,6 +17,7 @@ import dark from './themes/old-dark';
import { Content } from './components/Content';
import StatusBar from './components/StatusBar';
import Omnibox from './components/leap/Omnibox';
import ErrorBoundary from '~/views/components/ErrorBoundary';
import GlobalStore from '~/logic/store/store';
import GlobalSubscription from '~/logic/subscription/global';
@ -132,6 +133,7 @@ class App extends React.Component {
</Helmet>
<Root background={background} >
<Router>
<ErrorBoundary>
<StatusBarWithRouter
props={this.props}
associations={associations}
@ -141,6 +143,8 @@ class App extends React.Component {
subscription={this.subscription}
ship={this.ship}
/>
</ErrorBoundary>
<ErrorBoundary>
<Omnibox
associations={state.associations}
apps={state.launch}
@ -148,12 +152,15 @@ class App extends React.Component {
dark={state.dark}
show={state.omniboxShown}
/>
</ErrorBoundary>
<ErrorBoundary>
<Content
ship={this.ship}
api={this.api}
subscription={this.subscription}
{...state}
/>
</ErrorBoundary>
</Router>
</Root>
</ThemeProvider>