(js) Remove dependency on stateAccount
This commit is contained in:
parent
59cc13f41c
commit
f5432525ec
|
@ -6,8 +6,8 @@
|
||||||
/**
|
/**
|
||||||
* @ngInject
|
* @ngInject
|
||||||
*/
|
*/
|
||||||
MessageEditorController.$inject = ['$window', '$stateParams', '$mdConstant', '$mdDialog', '$mdToast', 'FileUploader', 'stateAccounts', 'stateAccount', 'stateMessage', 'stateRecipients', 'encodeUriFilter', '$timeout', 'Dialog', 'AddressBook', 'Card', 'Preferences'];
|
MessageEditorController.$inject = ['$window', '$stateParams', '$mdConstant', '$mdDialog', '$mdToast', 'FileUploader', 'stateAccounts', 'stateMessage', 'stateRecipients', 'encodeUriFilter', '$timeout', 'Dialog', 'AddressBook', 'Card', 'Preferences'];
|
||||||
function MessageEditorController($window, $stateParams, $mdConstant, $mdDialog, $mdToast, FileUploader, stateAccounts, stateAccount, stateMessage, stateRecipients, encodeUriFilter, $timeout, Dialog, AddressBook, Card, Preferences) {
|
function MessageEditorController($window, $stateParams, $mdConstant, $mdDialog, $mdToast, FileUploader, stateAccounts, stateMessage, stateRecipients, encodeUriFilter, $timeout, Dialog, AddressBook, Card, Preferences) {
|
||||||
var vm = this, semicolon = 186;
|
var vm = this, semicolon = 186;
|
||||||
|
|
||||||
vm.addRecipient = addRecipient;
|
vm.addRecipient = addRecipient;
|
||||||
|
@ -204,7 +204,7 @@
|
||||||
|
|
||||||
recipients = vm.message.editable[field];
|
recipients = vm.message.editable[field];
|
||||||
|
|
||||||
if (contact.c_component == 'vlist') {
|
if (contact.$isList()) {
|
||||||
// If the list's members were already fetch, use them
|
// If the list's members were already fetch, use them
|
||||||
if (angular.isDefined(contact.refs) && contact.refs.length) {
|
if (angular.isDefined(contact.refs) && contact.refs.length) {
|
||||||
_.each(contact.refs, function(ref) {
|
_.each(contact.refs, function(ref) {
|
||||||
|
|
Loading…
Reference in a new issue