@chat21/chat21-ionic 3.0.86-rc.2 → 3.0.86-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts
CHANGED
|
@@ -418,8 +418,8 @@ export class MessageTextAreaComponent implements OnInit, AfterViewInit, OnChange
|
|
|
418
418
|
modal.onDidDismiss().then((detail: any) => {
|
|
419
419
|
this.logger.log('[CONVS-DETAIL][MSG-TEXT-AREA] send Email detail returned-->', detail);
|
|
420
420
|
const form = detail.data.form
|
|
421
|
-
if (form&& form.
|
|
422
|
-
const text = '**' + form.subject + '**\r\n' + form.
|
|
421
|
+
if (form&& form.text && form.text.trim() !== '') {
|
|
422
|
+
const text = '**' + form.subject + '**\r\n' + form.text
|
|
423
423
|
const attributes = {
|
|
424
424
|
channel: TYPE_MSG_EMAIL
|
|
425
425
|
}
|
|
@@ -42,7 +42,7 @@ export class SendEmailModal implements OnInit {
|
|
|
42
42
|
value.subject !== ''? this.input_topic.nativeElement.classList.add('hasValue') : this.input_topic.nativeElement.classList.remove('hasValue')
|
|
43
43
|
})
|
|
44
44
|
if(this.msg && (this.msg !== '' || this.msg !== null)){
|
|
45
|
-
this.emailFormGroup.patchValue({
|
|
45
|
+
this.emailFormGroup.patchValue({ text: this.msg})
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -62,7 +62,7 @@ export class SendEmailModal implements OnInit {
|
|
|
62
62
|
this.logger.log('[SEND-EMAIL-MODAL] onSubmit -->',this.emailFormGroup)
|
|
63
63
|
const tiledeskToken = this.tiledeskAuthService.getTiledeskToken()
|
|
64
64
|
this.tiledeskService.sendEmail(tiledeskToken, this.projectId, this.emailFormGroup.value).subscribe((res)=> {
|
|
65
|
-
|
|
65
|
+
this.logger.debug('[SEND-EMAIL-MODAL] subscribe to sendEmail API response -->', res)
|
|
66
66
|
if(res && res.queued){
|
|
67
67
|
this.viewCtrl.dismiss({form: this.emailFormGroup.value})
|
|
68
68
|
this.presentToast(this.translationMap.get('SEND_EMAIL_SUCCESS'), 'success')
|
|
@@ -915,7 +915,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
|
|
|
915
915
|
request_id: this.conversationWith
|
|
916
916
|
}
|
|
917
917
|
this.tiledeskService.sendEmail(tiledeskToken, this.leadInfo.projectId, emailFormGroup).subscribe((res)=> {
|
|
918
|
-
|
|
918
|
+
this.logger.debug('[SEND-EMAIL-MODAL] subscribe to sendEmail API response -->', res)
|
|
919
919
|
if(res && res.queued){
|
|
920
920
|
this.presentToast(this.translationsMap.get('SEND_EMAIL_SUCCESS_OFFLINE_MESSAGE'), 'success', '', 2000)
|
|
921
921
|
}
|