(fix) make sure a recipient is defined before enabling the Send button

This commit is contained in:
Ludovic Marcotte
2015-10-16 14:00:04 -04:00
parent 8979aebe31
commit 74085ed96b
+2 -1
View File
@@ -21,7 +21,8 @@
</md-select>
</md-input-container>
<div flex-gt-sm="flex-gt-sm"><!-- spacer --></div>
<md-button class="sg-icon-button" ng-click="editor.send()">
<md-button class="sg-icon-button" ng-click="editor.send()"
ng-disabled="!(editor.message.editable.to.length > 0 || editor.message.editable.cc.length > 0 || editor.message.editable.bcc.length > 0)">
<md-icon>send</md-icon>
</md-button>
<md-button class="sg-icon-button" ng-click="editor.message.$save()">