(js) Always show center list when no card selected

This commit is contained in:
Francis Lachapelle
2018-01-24 10:35:15 -05:00
parent 7897ea58fe
commit d05477499f
4 changed files with 10 additions and 4 deletions
@@ -89,6 +89,11 @@
});
}
this.centerIsClose = function(navController_centerIsClose) {
// Allow the cards list to be hidden only if a card is selected
return this.selectedFolder.hasSelectedCard() && !!navController_centerIsClose;
};
this.selectCard = function(card) {
$state.go('app.addressbook.card.view', {cardId: card.id});
};