(js) Create list from selected cards

Fixes #3561
This commit is contained in:
Francis Lachapelle committed 2017-07-04 10:10:00 -04:00
1 parent 07fa202523
commit 721428c88f
5 files changed
+113 -78

No files matched your search

@@ -43,6 +43,9 @@
})
.state('app.addressbook.new', {
url: '/{contactType:(?:card|list)}/new',
params: {
refs: { array: true }
},
views: {
card: {
templateUrl: 'UIxContactEditorTemplate', // UI/Templates/Contacts/UIxContactEditorTemplate.wox
@@ -123,7 +126,7 @@
stateNewCard.$inject = ['$stateParams', 'stateAddressbook', 'Card'];
function stateNewCard($stateParams, stateAddressbook, Card) {
var tag = 'v' + $stateParams.contactType,
card = new Card({ pid: $stateParams.addressbookId, c_component: tag });
card = new Card({ pid: $stateParams.addressbookId, c_component: tag, refs: $stateParams.refs });
stateAddressbook.selectedCard = true;
return card;
}