Hide external apps by default

This commit is contained in:
Jaco Greeff
2016-11-14 17:02:45 +01:00
parent 6fc7c15644
commit 5a6e2f89dd
5 changed files with 70 additions and 67 deletions

View File

@@ -52,7 +52,7 @@ export default class AddDapps extends Component {
visible
scroll>
<List>
{ store.apps.map(this.renderApp) }
{ store.sortedApps.map(this.renderApp) }
</List>
</Modal>
);
@@ -60,7 +60,8 @@ export default class AddDapps extends Component {
renderApp = (app) => {
const { store } = this.props;
const isHidden = store.hidden.includes(app.id);
const isHidden = !store.displayApps[app.id].visible;
const onCheck = () => {
if (isHidden) {
store.showApp(app.id);