Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Minor improvements to about:extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansampson authored and bsclifton committed Jan 23, 2017
1 parent 47e4a22 commit 6630971
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/about/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class ExtensionItem extends ImmutableComponent {
}
render () {
const icon = this.props.extension.getIn(['manifest', 'icons', '48'])
const permissions = this.props.extension.getIn(['manifest', 'permissions'])
return <div role='listitem'
disabled={!this.props.extension.get('enabled')}
className='listItem'
Expand All @@ -46,7 +47,11 @@ class ExtensionItem extends ImmutableComponent {
}
<div className='extensionPath'><span data-l10n-id='extensionPathLabel' /> <span>{this.props.extension.get('base_path')}</span></div>
<div className='extensionID'><span data-l10n-id='extensionIdLabel' /> <span>{this.props.extension.get('id')}</span></div>
<div className='extensionPermissions'><span data-l10n-id='extensionPermissionsLabel' /> <span>{this.props.extension.getIn(['manifest', 'permissions']).join(', ')}</span></div>
{
permissions
? <div className='extensionPermissions'><span data-l10n-id='extensionPermissionsLabel' /> <span>{permissions.join(', ')}</span></div>
: null
}
</div>
</div>
}
Expand Down
5 changes: 5 additions & 0 deletions less/about/extensions.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@

.extensionImage {
padding-right: 10px;

img {
width: 48px;
}

}

&[disabled] {
Expand Down

0 comments on commit 6630971

Please sign in to comment.