(feat) can now send out MDN responses
parent
f369eabd06
commit
02112dea8a
|
@ -100,6 +100,23 @@
|
|||
</header>
|
||||
<md-divider><!-- divider --></md-divider>
|
||||
|
||||
<div ng-show="message.shouldAskReceipt == 1"
|
||||
layout-padding="layout-padding">
|
||||
<md-whiteframe class="md-whiteframe-z2" layout="column"
|
||||
layout-align="center start">
|
||||
<md-icon>warning</md-icon>
|
||||
<span><var:string label:value="The sender of this message has asked to be notified when you read this message. Do you with to notify the sender?"/></span>
|
||||
<div class="md-actions" layout="row">
|
||||
<md-button label:aria-label="Yes"
|
||||
type="button" class="md-primary"
|
||||
ng-click="message.$sendMDN()">Yes</md-button>
|
||||
<md-button label:aria-label="No"
|
||||
type="button"
|
||||
ng-click="message.shouldAskReceipt = 0">No</md-button>
|
||||
</div>
|
||||
</md-whiteframe>
|
||||
</div>
|
||||
|
||||
<div class="msg-body">
|
||||
<div class="msg-date sg-md-body-multi">
|
||||
<time datetime="message.date" ng-bind="message.date"><!-- date --></time>
|
||||
|
|
|
@ -310,6 +310,16 @@
|
|||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* @function $sendMDN
|
||||
* @memberof Message.prototype
|
||||
* @desc Send MDN response for current email message
|
||||
*/
|
||||
Message.prototype.$sendMDN = function() {
|
||||
this.shouldAskReceipt = 0;
|
||||
return Message.$$resource.post(this.id, 'sendMDN');
|
||||
}
|
||||
|
||||
/**
|
||||
* @function $deleteAttachment
|
||||
* @memberof Message.prototype
|
||||
|
|
Loading…
Reference in New Issue