Skip to content

Commit

Permalink
feat(ui): widgets don't have tooltips (#4257) (#4261)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref authored Sep 24, 2020
1 parent b7c2002 commit 3f7d600
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,20 +166,23 @@ export class ApplicationDetails extends React.Component<RouteComponentProps<{nam
<div className='application-details__view-type'>
<i
className={classNames('fa fa-sitemap', {selected: pref.view === 'tree'})}
title='Tree'
onClick={() => {
this.appContext.apis.navigation.goto('.', {view: 'tree'});
services.viewPreferences.updatePreferences({appDetails: {...pref, view: 'tree'}});
}}
/>
<i
className={classNames('fa fa-network-wired', {selected: pref.view === 'network'})}
title='Network'
onClick={() => {
this.appContext.apis.navigation.goto('.', {view: 'network'});
services.viewPreferences.updatePreferences({appDetails: {...pref, view: 'network'}});
}}
/>
<i
className={classNames('fa fa-th-list', {selected: pref.view === 'list'})}
title='List'
onClick={() => {
this.appContext.apis.navigation.goto('.', {view: 'list'});
services.viewPreferences.updatePreferences({appDetails: {...pref, view: 'list'}});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const AccountDetails = (props: RouteComponentProps<{name: string}>) => {
<div className='white-box account-details__new-token'>
<h5>New Token:</h5>
<p>{newToken}</p>
<i className='fa fa-times account-details__remove-token' onClick={() => setNewToken(null)} />
<i className='fa fa-times account-details__remove-token' title='Remove' onClick={() => setNewToken(null)} />
</div>
)}
<DataLoader ref={tokensLoaderRef} input={props.match.params.name} load={(name: string) => services.accounts.get(name).then(acc => acc.tokens || [])}>
Expand All @@ -117,6 +117,7 @@ export const AccountDetails = (props: RouteComponentProps<{name: string}>) => {
{(token.expiresAt && <Timestamp date={token.expiresAt * 1000} />) || <span>Never</span>}
<i
className='fa fa-times account-details__remove-token'
title='Delete'
onClick={async () => {
const confirmed = await ctx.popup.confirm(
'Delete Token?',
Expand Down

0 comments on commit 3f7d600

Please sign in to comment.