sync
This commit is contained in:
@ -71,7 +71,7 @@ export default class CustomerRecordComment {
|
||||
createElement('div', null,
|
||||
createElement('div', div => {
|
||||
div.className = 'title-module';
|
||||
div.innerText = r('P_CR_COMMENTS', 'Comments');
|
||||
div.innerText = r('FLTL_00584', 'Comments');
|
||||
},
|
||||
createHideMessageTitleButton(this, 'showCommentHidden')
|
||||
)
|
||||
@ -97,7 +97,7 @@ export default class CustomerRecordComment {
|
||||
);
|
||||
// enter box
|
||||
const enter = createElement('textarea', 'ui-text');
|
||||
enter.placeholder = r('P_CU_ENTERCOMMENTHERE', 'Enter Comment Here');
|
||||
enter.placeholder = r('FLTL_01154', 'Enter Comment Here');
|
||||
enter.maxLength = this._var.option.maxLength ??= 3000;
|
||||
enter.addEventListener('input', () => {
|
||||
const val = this.text;
|
||||
@ -120,8 +120,8 @@ export default class CustomerRecordComment {
|
||||
button.style.display = 'none';
|
||||
}
|
||||
button.appendChild(createIcon('fa-solid', 'paper-plane'));
|
||||
// setTooltip(button, r('P_M3_SENDMESSAGE', 'Send Message'));
|
||||
setTooltip(button, r('P_CU_POSTNOTE', 'Post Note'));
|
||||
// setTooltip(button, r('FLTL_02692', 'Send Message'));
|
||||
setTooltip(button, r('FLTL_02301', 'Post Note'));
|
||||
button.addEventListener('click', () => {
|
||||
if (typeof this._var.option.onAddComment === 'function') {
|
||||
this._var.option.onAddComment(this.text);
|
||||
@ -151,7 +151,7 @@ export default class CustomerRecordComment {
|
||||
}
|
||||
}
|
||||
// if (sendto !== '') {
|
||||
// sendto = r('P_CU_SENDTO_COLON', 'Sent To :') + `\n${sendto}`;
|
||||
// sendto = r('FLTL_02716', 'Sent To :') + `\n${sendto}`;
|
||||
// }
|
||||
div.appendChild(createElement('div', div => {
|
||||
div.className = 'item-poster';
|
||||
|
@ -29,9 +29,9 @@ export class Contact {
|
||||
});
|
||||
const preferences = new Dropdown({ tabIndex: tabIndex + 2 });
|
||||
preferences.source = [
|
||||
{ value: '0', text: r('P_CR_TEXT', 'Text') },
|
||||
{ value: '1', text: r('P_CR_EMAIL', 'Email') },
|
||||
{ value: '2', text: r('P_CR_PHONE', 'Phone') }
|
||||
{ value: '0', text: r('FLTL_02915', 'Text') },
|
||||
{ value: '1', text: r('FLTL_01089', 'Email') },
|
||||
{ value: '2', text: r('FLTL_02194', 'Phone') }
|
||||
];
|
||||
const contactEmail = createElement('input', input => {
|
||||
input.type = 'email';
|
||||
@ -57,7 +57,7 @@ export class Contact {
|
||||
const buttons = [];
|
||||
if (this._var.option.company) {
|
||||
buttons.push({
|
||||
text: c == null ? r('P_WO_ADDCONTACTRECORD', 'Add Contact Record') : r('P_WO_EDITCONTACTRECORD', 'Edit Contact Record'),
|
||||
text: c == null ? r('FLTL_00100', 'Add Contact Record') : r('FLTL_01042', 'Edit Contact Record'),
|
||||
// tabIndex: tabIndex + 7,
|
||||
trigger: () => {
|
||||
const item = this.prepare();
|
||||
@ -73,7 +73,7 @@ export class Contact {
|
||||
}
|
||||
buttons.push(
|
||||
{
|
||||
text: r('P_WO_WORKORDERONLY', 'Work Order Only'),
|
||||
text: r('FLTL_03348', 'Work Order Only'),
|
||||
// tabIndex: tabIndex + 8,
|
||||
trigger: () => {
|
||||
const item = this.prepare();
|
||||
@ -88,39 +88,39 @@ export class Contact {
|
||||
}
|
||||
},
|
||||
{
|
||||
text: r('P_WO_CANCEL', 'Cancel'),
|
||||
text: r('FLTL_00499', 'Cancel'),
|
||||
// tabIndex: tabIndex + 9
|
||||
}
|
||||
);
|
||||
const popup = new Popup({
|
||||
onMasking: this._var.option.onMasking,
|
||||
title: c == null ? r('P_CR_ADDCONTACT', 'Add Contact') : r('P_CR_EDITCONTACT', 'Edit Contact'),
|
||||
title: c == null ? r('FLTL_00099', 'Add Contact') : r('FLTL_01041', 'Edit Contact'),
|
||||
content: createElement('div', wrapper => {
|
||||
wrapper.className = 'setting-wrapper';
|
||||
wrapper.style.width = '500px';
|
||||
},
|
||||
createElement('div', 'setting-item',
|
||||
createElement('span', 'setting-label setting-required', r('P_CR_CONTACTNAME_COLON', 'Contact Name:')),
|
||||
createElement('span', 'setting-label setting-required', r('FLTL_00640', 'Contact Name:')),
|
||||
contactName
|
||||
),
|
||||
createElement('div', 'setting-item',
|
||||
createElement('span', 'setting-label', r('P_CR_CONTACTPREFERENCES_COLON', 'Contact Preferences:')),
|
||||
createElement('span', 'setting-label', r('FLTL_00643', 'Contact Preferences:')),
|
||||
preferences.create()
|
||||
),
|
||||
createElement('div', 'setting-item',
|
||||
createElement('span', 'setting-label', r('P_CR_EMAILADDRESS_COLON', 'Email Address:')),
|
||||
createElement('span', 'setting-label', r('FLTL_01092', 'Email Address:')),
|
||||
contactEmail
|
||||
),
|
||||
createElement('div', 'setting-item',
|
||||
createElement('span', 'setting-label', r('P_WO_MOBILE_COLON', 'Mobile:')),
|
||||
createElement('span', 'setting-label', r('FLTL_01932', 'Mobile:')),
|
||||
contactMobile
|
||||
),
|
||||
createElement('div', 'setting-item',
|
||||
createElement('span', 'setting-label', r('P_CR_OPTOUT_COLON', 'Opt Out:')),
|
||||
createElement('span', 'setting-label', r('FLTL_02089', 'Opt Out:')),
|
||||
checkOpt
|
||||
),
|
||||
createElement('div', 'setting-item',
|
||||
createElement('span', 'setting-label', r('P_CR_NOTES_COLON', 'Notes:')),
|
||||
createElement('span', 'setting-label', r('FLTL_02017', 'Notes:')),
|
||||
contactNotes
|
||||
)
|
||||
),
|
||||
@ -156,24 +156,24 @@ export class Contact {
|
||||
const phone = this._var.refs.contactMobile.value;
|
||||
const opt = this._var.refs.checkOpt.querySelector('input').checked;
|
||||
const notes = this._var.refs.contactNotes.value;
|
||||
const title = this._var.option.contact == null ? r('P_CR_ADDCONTACT', 'Add Contact') : r('P_CR_EDITCONTACT', 'Edit Contact');
|
||||
const title = this._var.option.contact == null ? r('FLTL_00099', 'Add Contact') : r('FLTL_01041', 'Edit Contact');
|
||||
if (nullOrEmpty(name)) {
|
||||
showAlert(title, r('P_CR_CONTACTNAMECANNOTBEEMPTY', 'Contact Name cannot be empty.'), 'warn')
|
||||
showAlert(title, r('FLTL_00639', 'Contact Name cannot be empty.'), 'warn')
|
||||
.then(() => this._var.refs.contactName.focus());
|
||||
return null;
|
||||
}
|
||||
if ((pref == 0 || pref == 2) && nullOrEmpty(phone)) {
|
||||
showAlert(title, r('P_CR_MOBILECANNOTBEEMPTY', 'Mobile cannot be empty.'), 'warn')
|
||||
showAlert(title, r('FLTL_01929', 'Mobile cannot be empty.'), 'warn')
|
||||
.then(() => this._var.refs.contactMobile.focus());
|
||||
return null;
|
||||
}
|
||||
if (pref == 1 && nullOrEmpty(email)) {
|
||||
showAlert(title, r('P_CU_EMAILCANNOTBEEMPTY', 'Email cannot be empty.'), 'warn')
|
||||
showAlert(title, r('FLTL_01094', 'Email cannot be empty.'), 'warn')
|
||||
.then(() => this._var.refs.contactEmail.focus());
|
||||
return null;
|
||||
}
|
||||
if (!nullOrEmpty(email) && !isEmail(email)) {
|
||||
showAlert(title, r('P_CR_EMAILISNOTAVALIDEMAILADDRESS', 'The email address is invalid.'), 'warn')
|
||||
showAlert(title, r('FLTL_02952', 'The email address is invalid.'), 'warn')
|
||||
.then(() => this._var.refs.contactEmail.focus());
|
||||
return null;
|
||||
}
|
||||
@ -223,7 +223,7 @@ export class CustomerRecordContact {
|
||||
),
|
||||
buttons: [
|
||||
{
|
||||
text: r('P_WO_OK', 'OK'),
|
||||
text: r('FLTL_02057', 'OK'),
|
||||
key: 'ok',
|
||||
trigger: () => {
|
||||
if (typeof this._var.option.onOk === 'function') {
|
||||
@ -231,7 +231,7 @@ export class CustomerRecordContact {
|
||||
}
|
||||
}
|
||||
},
|
||||
{ text: r('P_WO_CANCEL', 'Cancel'), key: 'cancel' }
|
||||
{ text: r('FLTL_00499', 'Cancel'), key: 'cancel' }
|
||||
]
|
||||
});
|
||||
const result = await popup.show(parent);
|
||||
@ -244,12 +244,12 @@ export class CustomerRecordContact {
|
||||
width: 40,
|
||||
// enabled: item => !nullOrEmpty(item.ID)
|
||||
},
|
||||
{ key: 'Name', caption: r("P_CR_CONTACTNAME", "Contact Name"), width: 100 },
|
||||
{ key: 'Email', caption: r("P_CR_CONTACTEMAIL", "Contact Email"), css: { 'width': 180, 'text-align': 'left' } },
|
||||
{ key: 'MobilePhoneDisplayText', caption: r("P_CR_CONTACTMOBILE", "Contact Mobile"), width: 130 },
|
||||
{ key: 'ContactPreferenceStr', caption: r("P_CR_CONTACTPREFERENCES", "Contact Preferences"), width: 100 },
|
||||
{ key: 'OptOut', caption: r("P_CR_OPTOUT", "Opt Out"), type: Grid.ColumnTypes.Checkbox, width: 70, enabled: false, align: 'center' },
|
||||
{ key: 'Notes', caption: r("P_CR_NOTES", "Notes"), width: 120 }
|
||||
{ key: 'Name', caption: r('FLTL_00637', 'Contact Name'), width: 100 },
|
||||
{ key: 'Email', caption: r('FLTL_00633', 'Contact Email'), css: { 'width': 180, 'text-align': 'left' } },
|
||||
{ key: 'MobilePhoneDisplayText', caption: r('FLTL_00636', 'Contact Mobile'), width: 130 },
|
||||
{ key: 'ContactPreferenceStr', caption: r('FLTL_00642', 'Contact Preferences'), width: 100 },
|
||||
{ key: 'OptOut', caption: r('FLTL_02084', 'Opt Out'), type: Grid.ColumnTypes.Checkbox, width: 70, enabled: false, align: 'center' },
|
||||
{ key: 'Notes', caption: r('FLTL_02012', 'Notes'), width: 120 }
|
||||
];
|
||||
grid.init();
|
||||
grid.source = this._var.option.contacts.sort(function (a, b) { return ((b.Text || b.Email) ? 1 : 0) - ((a.Text || a.Email) ? 1 : 0) });
|
||||
|
@ -215,7 +215,7 @@ export default class CustomerCommunication {
|
||||
let tipstr;
|
||||
if (c.OptOut || c.OptOut_BC || c.selected === false) {
|
||||
icon = 'times';
|
||||
tipstr = r('P_CU_OPTEDOUT_PROMPT', 'User has opted out of messages');
|
||||
tipstr = r('FLTL_03200', 'User has opted out of messages');
|
||||
}
|
||||
else {
|
||||
switch (pref) {
|
||||
@ -224,20 +224,20 @@ export default class CustomerCommunication {
|
||||
icon = 'times';
|
||||
if (c.MobilePhoneStatus === 412) {
|
||||
// landline
|
||||
tipstr = r('P_CU_LANDLINE', 'Landline');
|
||||
tipstr = r('FLTL_01707', 'Landline');
|
||||
}
|
||||
} else {
|
||||
icon = 'comment-lines';
|
||||
}
|
||||
method = r('P_CU_TEXTSTO_COLON', 'Texts to:');
|
||||
method = r('FLTL_02924', 'Texts to:');
|
||||
break;
|
||||
case '2':
|
||||
icon = 'phone';
|
||||
tipstr = r('P_CU_NOMESSAGE', 'No Messages Sent');
|
||||
tipstr = r('FLTL_01991', 'No Messages Sent');
|
||||
break;
|
||||
default:
|
||||
icon = 'envelope';
|
||||
method = r('P_CU_EMAILSTO_COLON', 'Emails to:');
|
||||
method = r('FLTL_01109', 'Emails to:');
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -254,7 +254,7 @@ export default class CustomerCommunication {
|
||||
this._var.contacts.appendChild(item);
|
||||
let tip = tipstr || `${method} ${to}`;
|
||||
if (span.scrollWidth > span.offsetWidth) {
|
||||
tip = r('P_WO_NAME_COLON', 'Name:') + ` ${c.Name}\n${tip}`;
|
||||
tip = r('FLTL_01970', 'Name:') + ` ${c.Name}\n${tip}`;
|
||||
}
|
||||
setTooltip(span, tip);
|
||||
}
|
||||
@ -315,8 +315,8 @@ export default class CustomerCommunication {
|
||||
if (this._var.option.customerReadonly === true) {
|
||||
div.style.display = 'none';
|
||||
} else {
|
||||
div.querySelector('.title-company-name').innerText = r('P_WO_NOCUSTOMERASSIGNED', 'No Customer Assigned');
|
||||
companyCode.innerText = ' /\n' + r('P_WO_SELECTCUSTOMER', 'Select Customer');
|
||||
div.querySelector('.title-company-name').innerText = r('FLTL_01985', 'No Customer Assigned');
|
||||
companyCode.innerText = ' /\n' + r('FLTL_02654', 'Select Customer');
|
||||
companyCode.style.display = '';
|
||||
}
|
||||
} else {
|
||||
@ -337,8 +337,8 @@ export default class CustomerCommunication {
|
||||
const companyCode = div.querySelector('.title-company-code');
|
||||
if (companyCode != null) {
|
||||
if (nullOrEmpty(option.companyName)) {
|
||||
div.querySelector('.title-company-name').innerText = r('P_WO_NOCUSTOMERASSIGNED', 'No Customer Assigned');
|
||||
companyCode.innerText = ' /\n' + r('P_WO_SELECTCUSTOMER', 'Select Customer');
|
||||
div.querySelector('.title-company-name').innerText = r('FLTL_01985', 'No Customer Assigned');
|
||||
companyCode.innerText = ' /\n' + r('FLTL_02654', 'Select Customer');
|
||||
companyCode.style.display = '';
|
||||
} else {
|
||||
div.querySelector('.title-company-name').innerText = option.companyName;
|
||||
@ -364,7 +364,7 @@ export default class CustomerCommunication {
|
||||
this._var.followers.replaceChildren();
|
||||
if (followers?.length > 0) {
|
||||
this._var.container.querySelector('.follower-bar').style.display = '';
|
||||
setTooltip(this._var.buttonFollower, r('P_CU_EDITFOLLOWERS', 'Edit Followers'));
|
||||
setTooltip(this._var.buttonFollower, r('FLTL_01054', 'Edit Followers'));
|
||||
this._var.container.querySelector('.follower-bar>.bar-list').appendChild(this._var.buttonFollower);
|
||||
for (let f of followers) {
|
||||
if (f.OptOut) {
|
||||
@ -375,10 +375,10 @@ export default class CustomerCommunication {
|
||||
const email = String(f.Email).trim();
|
||||
const tips = [];
|
||||
if (f.SendEmail) {
|
||||
tips.push(r('P_CU_EMAILSTO_COLON', 'Emails to:') + ` ${email}`);
|
||||
tips.push(r('FLTL_01109', 'Emails to:') + ` ${email}`);
|
||||
}
|
||||
if (f.SendText) {
|
||||
tips.push(r('P_CU_TEXTSTO_COLON', 'Texts to:') + ` ${mpDisplay}`);
|
||||
tips.push(r('FLTL_02924', 'Texts to:') + ` ${mpDisplay}`);
|
||||
}
|
||||
let icon;
|
||||
if (f.SendText && f.SendEmail) {
|
||||
@ -402,13 +402,13 @@ export default class CustomerCommunication {
|
||||
);
|
||||
this._var.followers.appendChild(item);
|
||||
if (span.scrollWidth > span.offsetWidth) {
|
||||
tips.splice(0, 0, r('P_WO_NAME_COLON', 'Name:') + ` ${f.Name}`);
|
||||
tips.splice(0, 0, r('FLTL_01970', 'Name:') + ` ${f.Name}`);
|
||||
}
|
||||
setTooltip(span, tips.join('\n'));
|
||||
}
|
||||
} else {
|
||||
this._var.container.querySelector('.follower-bar').style.display = 'none';
|
||||
setTooltip(this._var.buttonFollower, r('P_CR_ADDFOLLOWERS', 'Add Followers'));
|
||||
setTooltip(this._var.buttonFollower, r('FLTL_00116', 'Add Followers'));
|
||||
this._var.container.querySelector('.button-edit-contacts').insertAdjacentElement('beforebegin', this._var.buttonFollower)
|
||||
}
|
||||
this._var.message.scrollTop = this._var.message.scrollHeight
|
||||
@ -429,8 +429,8 @@ export default class CustomerCommunication {
|
||||
uncheckedNode: createIcon('fa-regular', 'ban'),
|
||||
onchange: function () {
|
||||
setTooltip(checkAutoUpdate, this.checked ?
|
||||
r('P_CU_AUTOUPDATESENABLED', 'Auto Updates Enabled') :
|
||||
r('P_CU_AUTOUPDATESDISABLED', 'Auto Updates Disabled'));
|
||||
r('FLTL_00420', 'Auto Updates Enabled') :
|
||||
r('FLTL_00419', 'Auto Updates Disabled'));
|
||||
}
|
||||
});
|
||||
if (option.autoUpdatesVisible === false) {
|
||||
@ -445,8 +445,8 @@ export default class CustomerCommunication {
|
||||
uncheckedNode: createIcon('fa-regular', 'unlink'),
|
||||
onchange: function () {
|
||||
setTooltip(checkLink, this.checked ?
|
||||
r('P_WO_STATUSLINKINCLUDED', 'Status Link Included') :
|
||||
r('P_WO_STATUSLINKEXCLUDED', 'Status Link Excluded'));
|
||||
r('FLTL_02830', 'Status Link Included') :
|
||||
r('FLTL_02829', 'Status Link Excluded'));
|
||||
if (typeof option.onStatusLinkChanged === 'function') {
|
||||
option.onStatusLinkChanged.call(This, this.checked);
|
||||
}
|
||||
@ -460,7 +460,7 @@ export default class CustomerCommunication {
|
||||
createElement('div', null,
|
||||
createElement('div', div => {
|
||||
div.className = 'title-module';
|
||||
div.innerText = option.title ?? r('P_WO_CUSTOMERCOMMUNICATION', 'Customer Communication');
|
||||
div.innerText = option.title ?? r('FLTL_00732', 'Customer Communication');
|
||||
},
|
||||
createHideMessageTitleButton(this, 'showMessageHidden')
|
||||
),
|
||||
@ -472,7 +472,7 @@ export default class CustomerCommunication {
|
||||
createElement('span', span => {
|
||||
span.className = 'title-company-name';
|
||||
if (nullOrEmpty(option.companyName)) {
|
||||
span.innerText = r('P_WO_NOCUSTOMERASSIGNED', 'No Customer Assigned');
|
||||
span.innerText = r('FLTL_01985', 'No Customer Assigned');
|
||||
} else {
|
||||
span.innerText = option.companyName;
|
||||
}
|
||||
@ -482,7 +482,7 @@ export default class CustomerCommunication {
|
||||
if (option.customerReadonly === true) {
|
||||
span.style.display = 'none';
|
||||
} else if (nullOrEmpty(option.companyName)) {
|
||||
span.innerText = ' /\n' + r('P_WO_SELECTCUSTOMER', 'Select Customer');
|
||||
span.innerText = ' /\n' + r('FLTL_02654', 'Select Customer');
|
||||
} else if (!nullOrEmpty(option.companyCode)) {
|
||||
span.innerText = ' / ' + option.companyCode;
|
||||
} else {
|
||||
@ -494,7 +494,7 @@ export default class CustomerCommunication {
|
||||
if (option.recordReadonly) {
|
||||
span.style.display = 'none';
|
||||
}
|
||||
setTooltip(span, r('P_WO_SELECTCUSTOMER', 'Select Customer'));
|
||||
setTooltip(span, r('FLTL_02654', 'Select Customer'));
|
||||
if (typeof option.onAddCompany === 'function') {
|
||||
span.addEventListener('click', () => option.onAddCompany.call(this));
|
||||
}
|
||||
@ -504,8 +504,8 @@ export default class CustomerCommunication {
|
||||
)
|
||||
),
|
||||
[
|
||||
setTooltip(checkAutoUpdate, r('P_CU_AUTOUPDATESENABLED', 'Auto Updates Enabled')),
|
||||
setTooltip(checkLink, r('P_WO_STATUSLINKEXCLUDED', 'Status Link Excluded'))
|
||||
setTooltip(checkAutoUpdate, r('FLTL_00420', 'Auto Updates Enabled')),
|
||||
setTooltip(checkLink, r('FLTL_02829', 'Status Link Excluded'))
|
||||
]
|
||||
);
|
||||
// contacts
|
||||
@ -514,7 +514,7 @@ export default class CustomerCommunication {
|
||||
this._var.followers = this._createFollowers(container, option);
|
||||
// enter box
|
||||
const enter = createElement('textarea', 'ui-text');
|
||||
enter.placeholder = r('P_CU_ENTERMESSAGEHERE', 'Enter Message Here');
|
||||
enter.placeholder = r('FLTL_01157', 'Enter Message Here');
|
||||
option.maxLength ??= 3000;
|
||||
enter.maxLength = option.maxLength;
|
||||
// if (readonly === true) {
|
||||
@ -586,7 +586,7 @@ export default class CustomerCommunication {
|
||||
div.style.display = 'none';
|
||||
}
|
||||
},
|
||||
createElement('span', span => span.innerText = r('P_WO_NAME_COLON', 'Name:')),
|
||||
createElement('span', span => span.innerText = r('FLTL_01970', 'Name:')),
|
||||
createElement('input', input => {
|
||||
input.type = 'text';
|
||||
input.className = 'ui-input';
|
||||
@ -631,11 +631,11 @@ export default class CustomerCommunication {
|
||||
// button.style.display = 'none';
|
||||
// }
|
||||
button.appendChild(createIcon('fa-solid', 'paper-plane'));
|
||||
setTooltip(button, r('P_M3_SENDMESSAGE', 'Send Message'));
|
||||
setTooltip(button, r('FLTL_02692', 'Send Message'));
|
||||
button.addEventListener('click', () => {
|
||||
const val = this.text;
|
||||
if (nullOrEmpty(val?.trim())) {
|
||||
const p = showAlert(r('P_WO_ERROR', 'Error'), r('P_WO_PLEASEINPUTTHEMESSAGE', 'Please input the message.'), 'warn');
|
||||
const p = showAlert(r('FLTL_01165', 'Error'), r('FLTL_02233', 'Please input the message.'), 'warn');
|
||||
if (typeof option.onMasking === 'function') {
|
||||
option.onMasking(true);
|
||||
p.then(() => option.onMasking(false));
|
||||
@ -678,7 +678,7 @@ export default class CustomerCommunication {
|
||||
button.style.display = 'none';
|
||||
}
|
||||
button.appendChild(createIcon('fa-solid', 'user-edit'));
|
||||
setTooltip(button, r('P_CU_EDITCONTACTS', 'Edit Contacts'));
|
||||
setTooltip(button, r('FLTL_01043', 'Edit Contacts'));
|
||||
button.addEventListener('click', () => {
|
||||
const editContacts = () => {
|
||||
const pop = new Popup({
|
||||
@ -692,7 +692,7 @@ export default class CustomerCommunication {
|
||||
div.className = 'ui-popup-move';
|
||||
div.style.flex = '1 1 auto';
|
||||
},
|
||||
createElement('div', div => div.innerText = r('P_CU_EDITCONTACTS', 'Edit Contacts')),
|
||||
createElement('div', div => div.innerText = r('FLTL_01043', 'Edit Contacts')),
|
||||
createElement('div', div => {
|
||||
div.className = 'title-company';
|
||||
div.style.maxWidth = '540px';
|
||||
@ -760,7 +760,7 @@ export default class CustomerCommunication {
|
||||
});
|
||||
}
|
||||
});
|
||||
var title = r('P_CU_SELECTFROMCUSTOMERRECORD', 'Select from Customer Record');
|
||||
var title = r('FLTL_02657', 'Select from Customer Record');
|
||||
sel.show(title, container);
|
||||
|
||||
if (typeof option.onOpenSelectCRContacts === 'function') {
|
||||
@ -796,7 +796,7 @@ export default class CustomerCommunication {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
setTooltip(button, r('P_CU_SELECTFROMCUSTOMERRECORD', 'Select from Customer Record'))
|
||||
setTooltip(button, r('FLTL_02657', 'Select from Customer Record'))
|
||||
}),
|
||||
createElement('button', button => {
|
||||
button.style.flex = '0 0 auto';
|
||||
@ -818,7 +818,7 @@ export default class CustomerCommunication {
|
||||
onSave: item => {
|
||||
const exists = this._var.gridContact.source.some(s => s.Name === item.Name && s.MobilePhone === item.MobilePhone);
|
||||
if (exists) {
|
||||
showAlert(r('P_CR_ADDCONTACT', 'Add Contact'), r('P_WO_CONTACTNAMEANDMOBILEUNIQUECOMBINATION', 'Contact name and contact mobile must be a unique combination.'), 'warn');
|
||||
showAlert(r('FLTL_00099', 'Add Contact'), r('FLTL_00638', 'Contact name and contact mobile must be a unique combination.'), 'warn');
|
||||
return false;
|
||||
}
|
||||
if (typeof option.onSave === 'function') {
|
||||
@ -852,7 +852,7 @@ export default class CustomerCommunication {
|
||||
});
|
||||
add.show(container);
|
||||
});
|
||||
setTooltip(button, r('P_CR_ADDCONTACT', 'Add Contact'))
|
||||
setTooltip(button, r('FLTL_00099', 'Add Contact'))
|
||||
})
|
||||
)
|
||||
}),
|
||||
@ -862,7 +862,7 @@ export default class CustomerCommunication {
|
||||
div.style.display = 'none';
|
||||
}
|
||||
div.style.fontWeight = 'bold';
|
||||
div.innerText = r('P_CU_CONTACTSFROMCUSTOMERRECORD', 'Contacts from Customer Record');
|
||||
div.innerText = r('FLTL_00657', 'Contacts from Customer Record');
|
||||
}),
|
||||
createElement('div', div => {
|
||||
if (nullOrEmpty(option.companyName)) {
|
||||
@ -875,7 +875,7 @@ export default class CustomerCommunication {
|
||||
}),
|
||||
createElement('div', div => {
|
||||
div.style.fontWeight = 'bold';
|
||||
div.innerText = r('P_CU_CONTACTSNOTCUSTOMERRECORD', 'Contacts not on Customer Record');
|
||||
div.innerText = r('FLTL_00659', 'Contacts not on Customer Record');
|
||||
}),
|
||||
createElement('div', div => {
|
||||
div.className = 'contacts-wo';
|
||||
@ -897,7 +897,7 @@ export default class CustomerCommunication {
|
||||
option.onChanged([...This._var.gridContact.source, ...This._var.gridWo.source]);
|
||||
}
|
||||
},
|
||||
tooltip: item => item.selected ? r('P_CU_OPTEDIN', 'Opted In') : r('P_CU_OPTEDOUT', 'Opted Out')
|
||||
tooltip: item => item.selected ? r('FLTL_02090', 'Opted In') : r('FLTL_02091', 'Opted Out')
|
||||
}
|
||||
};
|
||||
const iconCol = {
|
||||
@ -927,7 +927,7 @@ export default class CustomerCommunication {
|
||||
key: 'edit',
|
||||
...buttonCol,
|
||||
text: 'edit',
|
||||
tooltip: r('P_WO_EDIT', 'Edit'),
|
||||
tooltip: r('FLTL_01032', 'Edit'),
|
||||
events: {
|
||||
onclick: function () {
|
||||
const edit = new Contact({
|
||||
@ -940,7 +940,7 @@ export default class CustomerCommunication {
|
||||
This._var.gridContact.source.some(s => s !== this && s.Name === item.Name && s.MobilePhone === item.MobilePhone) ||
|
||||
This._var.gridWo.source.some(s => s !== this && s.Name === item.Name && s.MobilePhone === item.MobilePhone);
|
||||
if (exists) {
|
||||
showAlert(r('P_CR_EDITCONTACT', 'Edit Contact'), r('P_WO_CONTACTNAMEANDMOBILEUNIQUECOMBINATION', 'Contact name and contact mobile must be a unique combination.'), 'warn');
|
||||
showAlert(r('FLTL_01041', 'Edit Contact'), r('FLTL_00638', 'Contact name and contact mobile must be a unique combination.'), 'warn');
|
||||
return false;
|
||||
}
|
||||
if (typeof option.onSave === 'function') {
|
||||
@ -993,15 +993,15 @@ export default class CustomerCommunication {
|
||||
key: 'delete',
|
||||
...buttonCol,
|
||||
text: 'times',
|
||||
tooltip: r('P_WO_DELETE', 'Delete'),
|
||||
tooltip: r('FLTL_00791', 'Delete'),
|
||||
events: {
|
||||
onclick: function () {
|
||||
showConfirm(
|
||||
r('P_CU_REMOVECONTACT', 'Remove Contact'),
|
||||
r('FLTL_02417', 'Remove Contact'),
|
||||
createElement('div', null,
|
||||
createElement('div', div => {
|
||||
div.style.paddingLeft = '16px';
|
||||
div.innerText = r('P_CU_REMOVEFROM', 'Remove {name} from').replace('{name}', this.Name);
|
||||
div.innerText = r('FLTL_02412', 'Remove {name} from').replace('{name}', this.Name);
|
||||
}),
|
||||
createElement('div', div => {
|
||||
div.style.display = 'flex';
|
||||
@ -1010,19 +1010,19 @@ export default class CustomerCommunication {
|
||||
},
|
||||
createRadiobox({
|
||||
name: 'remove-type',
|
||||
label: r('P_CUSTOMERRECORD', 'Customer Record'),
|
||||
label: r('FLTL_00747', 'Customer Record'),
|
||||
checked: true,
|
||||
className: 'radio-customer-record'
|
||||
}),
|
||||
createRadiobox({
|
||||
name: 'remove-type',
|
||||
label: r('P_WORKORDER', 'Work Order')
|
||||
label: r('FLTL_03317', 'Work Order')
|
||||
})
|
||||
)
|
||||
),
|
||||
[
|
||||
{ key: 'ok', text: r('P_WO_OK', 'OK') },
|
||||
{ key: 'cancel', text: r('P_WO_CANCEL', 'Cancel') }
|
||||
{ key: 'ok', text: r('FLTL_02057', 'OK') },
|
||||
{ key: 'cancel', text: r('FLTL_00499', 'Cancel') }
|
||||
]
|
||||
).then(r => {
|
||||
if (r.result === 'ok') {
|
||||
@ -1078,12 +1078,12 @@ export default class CustomerCommunication {
|
||||
key: 'delete',
|
||||
...buttonCol,
|
||||
text: 'times',
|
||||
tooltip: r('P_WO_DELETE', 'Delete'),
|
||||
tooltip: r('FLTL_00791', 'Delete'),
|
||||
events: {
|
||||
onclick: function () {
|
||||
showConfirm(r('P_CU_REMOVECONTACT', 'Remove Contact'), r('P_CU_REMOVEFROMWORKORDER', 'You are removing {name} from work order.\n\nDo you want to Continue?').replace('{name}', this.Name), [
|
||||
{ key: 'continue', text: r('P_JS_CONTINUE', 'Continue') },
|
||||
{ key: 'cancel', text: r('P_WO_CANCEL', 'Cancel') }
|
||||
showConfirm(r('FLTL_02417', 'Remove Contact'), r('FLTL_03382', 'You are removing {name} from work order.\n\nDo you want to Continue?').replace('{name}', this.Name), [
|
||||
{ key: 'continue', text: r('FLTL_00661', 'Continue') },
|
||||
{ key: 'cancel', text: r('FLTL_00499', 'Cancel') }
|
||||
]).then(r => {
|
||||
if (r.result === 'continue') {
|
||||
if (typeof option.onDelete === 'function') {
|
||||
@ -1124,18 +1124,18 @@ export default class CustomerCommunication {
|
||||
};
|
||||
if (nullOrEmpty(option.companyName)) {
|
||||
showConfirm(
|
||||
r('P_CU_EDITCONTACTS', 'Edit Contacts'),
|
||||
r('P_CUSTOMER_ADDCOMPANYPROMPT', 'There is no company associated with this work order. Would you like to add one?\n\nIf no company is indicated, contacts must be added as "Work Order Only".'),
|
||||
r('FLTL_01043', 'Edit Contacts'),
|
||||
r('FLTL_03008', 'There is no company associated with this work order. Would you like to add one?\n\nIf no company is indicated, contacts must be added as "Work Order Only".'),
|
||||
[
|
||||
{ key: 'add', text: r('P_CUSTOMER_ADDCOMPANY', 'Add Company') },
|
||||
{ key: 'skip', text: r('P_CUSTOMER_SKIPTHISSTEP', 'Skip This Step') }
|
||||
{ key: 'add', text: r('FLTL_00098', 'Add Company') },
|
||||
{ key: 'skip', text: r('FLTL_02777', 'Skip This Step') }
|
||||
]
|
||||
).then(r => {
|
||||
if (r.result === 'add') {
|
||||
if (typeof option.onAddCompany === 'function') {
|
||||
option.onAddCompany.call(this);
|
||||
}
|
||||
} else if (r.key === 'skip') {
|
||||
} else if (r.result === 'skip') {
|
||||
editContacts();
|
||||
}
|
||||
});
|
||||
@ -1147,7 +1147,7 @@ export default class CustomerCommunication {
|
||||
),
|
||||
createElement('div', div => {
|
||||
div.className = 'bar-info';
|
||||
div.innerText = r('P_CR_CONTACTINFORMATION', 'Contact Information');
|
||||
div.innerText = r('FLTL_00635', 'Contact Information');
|
||||
}),
|
||||
createElement('div', div => {
|
||||
if (option.contactCollapserVisible === false) {
|
||||
@ -1191,12 +1191,12 @@ export default class CustomerCommunication {
|
||||
button.style.display = 'none';
|
||||
}
|
||||
button.appendChild(createIcon('fa-solid', 'pen'));
|
||||
setTooltip(button, r('P_CU_EDITFOLLOWERS', 'Edit Followers'));
|
||||
setTooltip(button, r('FLTL_01054', 'Edit Followers'));
|
||||
button.addEventListener('click', () => {
|
||||
if (typeof option.onInitFollower === 'function') {
|
||||
option.onInitFollower(this._var.data.followers).then(data => {
|
||||
if (typeof data === 'string') {
|
||||
showAlert(r('P_CUSTOMERRECORD', 'Customer Record'), data, 'warn');
|
||||
showAlert(r('FLTL_00747', 'Customer Record'), data, 'warn');
|
||||
return;
|
||||
}
|
||||
const add = new Follower({
|
||||
@ -1216,7 +1216,7 @@ export default class CustomerCommunication {
|
||||
}
|
||||
}
|
||||
});
|
||||
var title = this._var.data.followers?.length > 0 ? r('P_CU_EDITFOLLOWERS', 'Edit Followers') : r('P_CR_ADDFOLLOWERS', 'Add Followers');
|
||||
var title = this._var.data.followers?.length > 0 ? r('FLTL_01054', 'Edit Followers') : r('FLTL_00116', 'Add Followers');
|
||||
add.show(title, container);
|
||||
});
|
||||
}
|
||||
@ -1236,7 +1236,7 @@ export default class CustomerCommunication {
|
||||
'border-radius': '15px',
|
||||
'padding': '4px'
|
||||
})
|
||||
), r('P_CU_COPIED', 'Copied')),
|
||||
), r('FLTL_00667', 'Copied')),
|
||||
createElement('div', 'bar-list',
|
||||
followers,
|
||||
buttonEditFollower
|
||||
|
@ -24,7 +24,7 @@ export default class Follower {
|
||||
onMasking: this._var.option.onMasking,
|
||||
title,
|
||||
content: createElement('div', 'follower-wrapper',
|
||||
createElement('div', div => div.innerText = r('P_CR_WHODOYOUWANTTORECEIVECUSTOMERNOTIFICATIONS', 'Who do you want to receive customer notifications?')),
|
||||
createElement('div', div => div.innerText = r('FLTL_03300', 'Who do you want to receive customer notifications?')),
|
||||
createElement('input', search => {
|
||||
search.type = 'text';
|
||||
search.tabIndex = tabIndex + 3;
|
||||
@ -43,7 +43,7 @@ export default class Follower {
|
||||
),
|
||||
buttons: [
|
||||
{
|
||||
text: r('P_WO_OK', 'OK'),
|
||||
text: r('FLTL_02057', 'OK'),
|
||||
key: 'ok',
|
||||
trigger: () => {
|
||||
if (typeof this._var.option.onOk === 'function') {
|
||||
@ -51,7 +51,7 @@ export default class Follower {
|
||||
}
|
||||
}
|
||||
},
|
||||
{ text: r('P_WO_CANCEL', 'Cancel'), key: 'cancel' }
|
||||
{ text: r('FLTL_00499', 'Cancel'), key: 'cancel' }
|
||||
]
|
||||
});
|
||||
const result = await popup.show(parent);
|
||||
@ -59,18 +59,18 @@ export default class Follower {
|
||||
// grid
|
||||
const grid = new Grid(gridContainer);
|
||||
grid.columns = [
|
||||
{ key: 'DisplayName', caption: r('P_WO_CONTACTNAME', 'Contact Name'), width: 240 },
|
||||
{ key: 'ContactTypeName', caption: r('P_WO_CONTACTTYPE', 'Contact Type'), width: 120 },
|
||||
{ key: 'DisplayName', caption: r('FLTL_00637', 'Contact Name'), width: 240 },
|
||||
{ key: 'ContactTypeName', caption: r('FLTL_00644', 'Contact Type'), width: 120 },
|
||||
{
|
||||
key: 'Text',
|
||||
caption: r('P_CR_TEXT', 'Text'),
|
||||
caption: r('FLTL_02915', 'Text'),
|
||||
type: Grid.ColumnTypes.Checkbox,
|
||||
width: 60,
|
||||
enabled: item => !nullOrEmpty(item.Mobile)
|
||||
},
|
||||
{
|
||||
key: 'Email',
|
||||
caption: r('P_CR_EMAIL', 'Email'),
|
||||
caption: r('FLTL_01089', 'Email'),
|
||||
type: Grid.ColumnTypes.Checkbox,
|
||||
width: 70,
|
||||
// enabled: item => !nullOrEmpty(item.ID)
|
||||
|
@ -138,7 +138,7 @@ export default class InternalComment {
|
||||
createElement('div', null,
|
||||
createElement('div', div => {
|
||||
div.className = 'title-module';
|
||||
div.innerText = r('P_WO_INTERNALCOMMENTS', 'Internal Comments');
|
||||
div.innerText = r('FLTL_01613', 'Internal Comments');
|
||||
},
|
||||
createHideMessageTitleButton(this, 'showMessageHidden')
|
||||
)
|
||||
@ -147,7 +147,7 @@ export default class InternalComment {
|
||||
const readonly = option.readonly;
|
||||
// enter box
|
||||
const enter = createElement('textarea', 'ui-text');
|
||||
enter.placeholder = r('P_CU_ENTERCOMMENTHERE', 'Enter Comment Here');
|
||||
enter.placeholder = r('FLTL_01154', 'Enter Comment Here');
|
||||
enter.maxLength = option.maxLength ??= 3000;
|
||||
enter.addEventListener('input', () => {
|
||||
const val = this.text;
|
||||
@ -237,7 +237,7 @@ export default class InternalComment {
|
||||
if (readonly === true || option.noCallLog === true) {
|
||||
button.style.display = 'none';
|
||||
}
|
||||
setTooltip(button, r('P_WO_CALLLOG', 'Call Log'));
|
||||
setTooltip(button, r('FLTL_00491', 'Call Log'));
|
||||
button.addEventListener('click', () => {
|
||||
if (typeof option.onAddCallLog === 'function') {
|
||||
this.loading = true;
|
||||
@ -252,7 +252,7 @@ export default class InternalComment {
|
||||
button.style.display = 'none';
|
||||
}
|
||||
button.appendChild(createIcon('fa-solid', 'paper-plane'));
|
||||
setTooltip(button, r('P_M3_SENDMESSAGE', 'Send Message'));
|
||||
setTooltip(button, r('FLTL_02692', 'Send Message'));
|
||||
button.addEventListener('click', () => {
|
||||
const val = this.text;
|
||||
if (nullOrEmpty(val?.trim())) {
|
||||
@ -272,7 +272,7 @@ export default class InternalComment {
|
||||
button.style.display = 'none';
|
||||
}
|
||||
button.appendChild(createIcon('fa-solid', 'comment-alt-lines'));
|
||||
setTooltip(button, r('P_CU_POSTNOTE', 'Post Note'));
|
||||
setTooltip(button, r('FLTL_02301', 'Post Note'));
|
||||
button.addEventListener('click', () => {
|
||||
const val = this.text;
|
||||
if (nullOrEmpty(val?.trim())) {
|
||||
@ -339,10 +339,10 @@ export default class InternalComment {
|
||||
}
|
||||
// if (comment.FollowUp?.length > 0) {
|
||||
// div.classList.add('item-sent');
|
||||
// const sendto = r('P_CU_SENDTO_COLON', 'Sent To :') + '\r\n' + comment.FollowUp.split(';').join('\r\n');
|
||||
// const sendto = r('FLTL_02716', 'Sent To :') + '\r\n' + comment.FollowUp.split(';').join('\r\n');
|
||||
// content.appendChild(createElement('div', div => {
|
||||
// div.className = 'item-status';
|
||||
// div.innerText = r('P_WO_SENT', 'Sent');
|
||||
// div.innerText = r('FLTL_02711', 'Sent');
|
||||
// setTooltip(div, sendto);
|
||||
// }));
|
||||
// }
|
||||
|
@ -155,12 +155,12 @@ export function insertFile(container, file, r) {
|
||||
type = type.substring(type.lastIndexOf('.'));
|
||||
}
|
||||
if (fileSupported.indexOf(type) < 0) {
|
||||
showAlert(r('P_WO_ERROR', 'Error'), r('P_CU_TYPENOTSUPPORTED', 'File type "{type}" is now not supported.').replace('{type}', type));
|
||||
showAlert(r('FLTL_01165', 'Error'), r('FLTL_01385', 'File type "{type}" is now not supported.').replace('{type}', type));
|
||||
return;
|
||||
}
|
||||
const isImage = /^image\//.test(type);
|
||||
if (!isImage && file.size > MaxAttachmentSize.limit) {
|
||||
showAlert(r('P_WO_ERROR', 'Error'), r('P_WO_ATTACHMENTSIZEEXCEEDSTHEMAXIMUMTIPS', `Attachment size exceeds the maximum allowed to be sent (${MaxAttachmentSize.text})`), 'warn');
|
||||
showAlert(r('FLTL_01165', 'Error'), r('FLTL_00407', `Attachment size exceeds the maximum allowed to be sent (${MaxAttachmentSize.text})`), 'warn');
|
||||
return;
|
||||
}
|
||||
const fn = file.name;
|
||||
@ -202,12 +202,12 @@ function getStatusText(status, dict) {
|
||||
|
||||
export function getMessageStatus(comm, r, _var) {
|
||||
const messageStatus = {
|
||||
0: r('P_CU_PENDING', 'Pending'),
|
||||
1: r('P_WO_SENT', 'Sent'),
|
||||
5: r('P_CU_DELIVERYCONFIRMED', 'Delivery Confirmed'),
|
||||
6: r('P_CU_RESENT', 'Resent'),
|
||||
9: r('P_MA_FAILED', 'Failed'),
|
||||
9999: r('P_CU_UNKNOWN', 'Unknown')
|
||||
0: r('FLTL_02186', 'Pending'),
|
||||
1: r('FLTL_02711', 'Sent'),
|
||||
5: r('FLTL_00864', 'Delivery Confirmed'),
|
||||
6: r('FLTL_02478', 'Resent'),
|
||||
9: r('FLTL_01224', 'Failed'),
|
||||
9999: r('FLTL_03152', 'Unknown')
|
||||
};
|
||||
const knownStatus = [0, 1, 5, 6, 9, 10, 412];
|
||||
const okStatus = [1, 5, 6];
|
||||
@ -269,7 +269,7 @@ export function getMessageStatus(comm, r, _var) {
|
||||
if (statusUpdatable !== false) {
|
||||
tip.appendChild(createElement('div', b => {
|
||||
b.className = 'tip-function-button';
|
||||
// setTooltip(b, r('P_CU_UPDATESTATUS', 'Update Status'));
|
||||
// setTooltip(b, r('FLTL_03174', 'Update Status'));
|
||||
b.addEventListener('click', async () => {
|
||||
for (let p of comm.Participator) {
|
||||
switch (p.Status) {
|
||||
@ -292,7 +292,7 @@ export function getMessageStatus(comm, r, _var) {
|
||||
const gridContainer = createElement('div', 'status-grid');
|
||||
const popup = new Popup({
|
||||
onMasking: _var.option.onMasking,
|
||||
title: r('P_CU_UPDATESTATUS', 'Update Status'),
|
||||
title: r('FLTL_03174', 'Update Status'),
|
||||
content: createElement('div', wrapper => {
|
||||
wrapper.className = 'update-status-wrapper';
|
||||
wrapper.style.width = '500px';
|
||||
@ -301,7 +301,7 @@ export function getMessageStatus(comm, r, _var) {
|
||||
),
|
||||
buttons: [
|
||||
{
|
||||
text: r('P_WO_OK', 'OK'),
|
||||
text: r('FLTL_02057', 'OK'),
|
||||
key: 'ok',
|
||||
trigger: () => {
|
||||
const changed = msgs.filter(m => {
|
||||
@ -329,7 +329,7 @@ export function getMessageStatus(comm, r, _var) {
|
||||
}
|
||||
},
|
||||
{
|
||||
text: r('P_WO_CANCEL', 'Cancel'),
|
||||
text: r('FLTL_00499', 'Cancel'),
|
||||
key: 'cancel'
|
||||
}
|
||||
]
|
||||
@ -341,22 +341,22 @@ export function getMessageStatus(comm, r, _var) {
|
||||
grid.columns = [
|
||||
{
|
||||
key: 'CustomerNumber',
|
||||
caption: r('P_JS_NUMBER', 'Number'),
|
||||
caption: r('FLTL_02026', 'Number'),
|
||||
width: 150
|
||||
},
|
||||
/*{
|
||||
key: 'customerName',
|
||||
caption: r('P_WOS_CUSTOMERNAME', 'Customer Name'),
|
||||
caption: r('FLTL_00742', 'Customer Name'),
|
||||
width: 120
|
||||
},*/
|
||||
{
|
||||
key: 'statusText',
|
||||
caption: r('P_CU_CURRENTSTATUS', 'Current Status'),
|
||||
caption: r('FLTL_00725', 'Current Status'),
|
||||
width: 155
|
||||
},
|
||||
{
|
||||
key: 'statusChanged',
|
||||
caption: r('P_CU_REVISEDSTATUS', 'Revised Status'),
|
||||
caption: r('FLTL_02511', 'Revised Status'),
|
||||
width: 155,
|
||||
type: Grid.ColumnTypes.Dropdown,
|
||||
source: [
|
||||
@ -404,7 +404,7 @@ export function getMessageSendTo(comm, contacts, followers, r) {
|
||||
}
|
||||
}
|
||||
if (sendto !== '') {
|
||||
sendto = r('P_CU_SENDTO_COLON', 'Sent to :') + `\n${sendto}`;
|
||||
sendto = r('FLTL_02716', 'Sent to :') + `\n${sendto}`;
|
||||
}
|
||||
return sendto;
|
||||
}
|
||||
@ -432,7 +432,7 @@ export function createHideMessageTitleButton(This, optionName) {
|
||||
span.className = 'msgadminsetting sbutton iconnotview';
|
||||
}
|
||||
span.style.padding = '0px 0px 0px 5px';
|
||||
setTooltip(span, option?.getText('P_WO_MESSAGEHISTORY_MANAGE', 'Manage Messages'));
|
||||
setTooltip(span, option?.getText('FLTL_01860', 'Manage Messages'));
|
||||
span.addEventListener('click', function () {
|
||||
const container = This._var.container;
|
||||
if (!option[optionName]) {
|
||||
@ -457,8 +457,8 @@ export function createHideMessageTitleButton(This, optionName) {
|
||||
|
||||
export function createHideMessageCommentTail(This, optionName, comment, commentTime, func, hisFunc) {
|
||||
const option = This._var.option;
|
||||
const showTooltip = option?.getText('P_WO_MESSAGEHISTORY_VISIBLE', 'Visible');
|
||||
const notShowTooltip = option?.getText('P_WO_MESSAGEHISTORY_NOTVISIBLE', 'Not Visible');
|
||||
const showTooltip = option?.getText('FLTL_03267', 'Visible');
|
||||
const notShowTooltip = option?.getText('FLTL_02006', 'Not Visible');
|
||||
return createElement('div', div => {
|
||||
div.className = 'item-time';
|
||||
div.style.display = 'flex';
|
||||
@ -498,7 +498,7 @@ export function createHideMessageCommentTail(This, optionName, comment, commentT
|
||||
span.className = 'msgHistory history-span-' + comment.Id;
|
||||
span.setAttribute('ModifyCount', comment.ModifyCount ?? 0);
|
||||
span.style.display = (option[optionName] && comment.ModifyCount > 0) ? '' : 'none';
|
||||
setTooltip(span, option?.getText('P_WO_MESSAGEHISTORY_HEADER', 'Hidden History'));
|
||||
setTooltip(span, option?.getText('FLTL_01508', 'Hidden History'));
|
||||
const icon = createIcon('fa-light', 'wave-sine');
|
||||
icon.style.height = '12px';
|
||||
icon.style.width = '12px';
|
||||
|
Reference in New Issue
Block a user