fix unneeded template literals
parent
65f2a2691f
commit
c80eaf4a33
|
|
@ -32,14 +32,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
}
|
||||
else {
|
||||
bulmaJS.alert({
|
||||
message: `Burial Site Updated Successfully`,
|
||||
message: 'Burial Site Updated Successfully',
|
||||
contextualColorName: 'success'
|
||||
});
|
||||
}
|
||||
}
|
||||
else {
|
||||
bulmaJS.alert({
|
||||
title: `Error Updating Burial Site`,
|
||||
title: 'Error Updating Burial Site',
|
||||
message: responseJSON.errorMessage ?? '',
|
||||
contextualColorName: 'danger'
|
||||
});
|
||||
|
|
@ -67,7 +67,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
}
|
||||
else {
|
||||
bulmaJS.alert({
|
||||
title: `Error Deleting Burial Site`,
|
||||
title: 'Error Deleting Burial Site',
|
||||
message: responseJSON.errorMessage ?? '',
|
||||
contextualColorName: 'danger'
|
||||
});
|
||||
|
|
@ -75,11 +75,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
});
|
||||
}
|
||||
bulmaJS.confirm({
|
||||
title: `Delete Burial Site`,
|
||||
message: `Are you sure you want to delete this burial site?`,
|
||||
title: 'Delete Burial Site',
|
||||
message: 'Are you sure you want to delete this burial site?',
|
||||
contextualColorName: 'warning',
|
||||
okButton: {
|
||||
text: `Yes, Delete Burial Site`,
|
||||
text: 'Yes, Delete Burial Site',
|
||||
callbackFunction: doDelete
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -69,13 +69,13 @@ declare const exports: Record<string, unknown>
|
|||
)
|
||||
} else {
|
||||
bulmaJS.alert({
|
||||
message: `Burial Site Updated Successfully`,
|
||||
message: 'Burial Site Updated Successfully',
|
||||
contextualColorName: 'success'
|
||||
})
|
||||
}
|
||||
} else {
|
||||
bulmaJS.alert({
|
||||
title: `Error Updating Burial Site`,
|
||||
title: 'Error Updating Burial Site',
|
||||
message: responseJSON.errorMessage ?? '',
|
||||
contextualColorName: 'danger'
|
||||
})
|
||||
|
|
@ -116,7 +116,7 @@ declare const exports: Record<string, unknown>
|
|||
globalThis.location.href = sunrise.getBurialSiteURL()
|
||||
} else {
|
||||
bulmaJS.alert({
|
||||
title: `Error Deleting Burial Site`,
|
||||
title: 'Error Deleting Burial Site',
|
||||
message: responseJSON.errorMessage ?? '',
|
||||
contextualColorName: 'danger'
|
||||
})
|
||||
|
|
@ -126,11 +126,11 @@ declare const exports: Record<string, unknown>
|
|||
}
|
||||
|
||||
bulmaJS.confirm({
|
||||
title: `Delete Burial Site`,
|
||||
message: `Are you sure you want to delete this burial site?`,
|
||||
title: 'Delete Burial Site',
|
||||
message: 'Are you sure you want to delete this burial site?',
|
||||
contextualColorName: 'warning',
|
||||
okButton: {
|
||||
text: `Yes, Delete Burial Site`,
|
||||
text: 'Yes, Delete Burial Site',
|
||||
callbackFunction: doDelete
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
}
|
||||
function getBurialSites() {
|
||||
// eslint-disable-next-line no-unsanitized/property
|
||||
searchResultsContainerElement.innerHTML = sunrise.getLoadingParagraphHTML(`Loading Burial Sites...`);
|
||||
searchResultsContainerElement.innerHTML = sunrise.getLoadingParagraphHTML('Loading Burial Sites...');
|
||||
cityssm.postJSON(`${sunrise.urlPrefix}/burialSites/doSearchBurialSites`, searchFilterFormElement, renderBurialSites);
|
||||
}
|
||||
function resetOffsetAndGetBurialSites() {
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ declare const exports: Record<string, unknown>
|
|||
function getBurialSites(): void {
|
||||
// eslint-disable-next-line no-unsanitized/property
|
||||
searchResultsContainerElement.innerHTML = sunrise.getLoadingParagraphHTML(
|
||||
`Loading Burial Sites...`
|
||||
'Loading Burial Sites...'
|
||||
)
|
||||
|
||||
cityssm.postJSON(
|
||||
|
|
|
|||
|
|
@ -352,13 +352,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
if (responseJSON.success) {
|
||||
burialSiteStatuses = responseJSON.burialSiteStatuses;
|
||||
bulmaJS.alert({
|
||||
message: `Burial Site Status Updated Successfully`,
|
||||
message: 'Burial Site Status Updated Successfully',
|
||||
contextualColorName: 'success'
|
||||
});
|
||||
}
|
||||
else {
|
||||
bulmaJS.alert({
|
||||
title: `Error Updating Burial Site Status`,
|
||||
title: 'Error Updating Burial Site Status',
|
||||
message: responseJSON.errorMessage ?? '',
|
||||
contextualColorName: 'danger'
|
||||
});
|
||||
|
|
@ -382,13 +382,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
tableRowElement.remove();
|
||||
}
|
||||
bulmaJS.alert({
|
||||
message: `Burial Site Status Deleted Successfully`,
|
||||
message: 'Burial Site Status Deleted Successfully',
|
||||
contextualColorName: 'success'
|
||||
});
|
||||
}
|
||||
else {
|
||||
bulmaJS.alert({
|
||||
title: `Error Deleting Burial Site Status`,
|
||||
title: 'Error Deleting Burial Site Status',
|
||||
message: responseJSON.errorMessage ?? '',
|
||||
contextualColorName: 'danger'
|
||||
});
|
||||
|
|
@ -396,7 +396,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
});
|
||||
}
|
||||
bulmaJS.confirm({
|
||||
title: `Delete Burial Site Status`,
|
||||
title: 'Delete Burial Site Status',
|
||||
message: `Are you sure you want to delete this status?<br />
|
||||
Note that no burial sites will be removed.`,
|
||||
messageIsHtml: true,
|
||||
|
|
@ -424,7 +424,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
}
|
||||
else {
|
||||
bulmaJS.alert({
|
||||
title: `Error Moving Burial Site Status`,
|
||||
title: 'Error Moving Burial Site Status',
|
||||
message: responseJSON.errorMessage ?? '',
|
||||
contextualColorName: 'danger'
|
||||
});
|
||||
|
|
@ -500,7 +500,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
}
|
||||
else {
|
||||
bulmaJS.alert({
|
||||
title: `Error Adding Burial Site Status`,
|
||||
title: 'Error Adding Burial Site Status',
|
||||
message: responseJSON.errorMessage ?? '',
|
||||
contextualColorName: 'danger'
|
||||
});
|
||||
|
|
|
|||
|
|
@ -539,12 +539,12 @@ declare const bulmaJS: BulmaJS
|
|||
burialSiteStatuses = responseJSON.burialSiteStatuses
|
||||
|
||||
bulmaJS.alert({
|
||||
message: `Burial Site Status Updated Successfully`,
|
||||
message: 'Burial Site Status Updated Successfully',
|
||||
contextualColorName: 'success'
|
||||
})
|
||||
} else {
|
||||
bulmaJS.alert({
|
||||
title: `Error Updating Burial Site Status`,
|
||||
title: 'Error Updating Burial Site Status',
|
||||
message: responseJSON.errorMessage ?? '',
|
||||
contextualColorName: 'danger'
|
||||
})
|
||||
|
|
@ -579,12 +579,12 @@ declare const bulmaJS: BulmaJS
|
|||
}
|
||||
|
||||
bulmaJS.alert({
|
||||
message: `Burial Site Status Deleted Successfully`,
|
||||
message: 'Burial Site Status Deleted Successfully',
|
||||
contextualColorName: 'success'
|
||||
})
|
||||
} else {
|
||||
bulmaJS.alert({
|
||||
title: `Error Deleting Burial Site Status`,
|
||||
title: 'Error Deleting Burial Site Status',
|
||||
message: responseJSON.errorMessage ?? '',
|
||||
contextualColorName: 'danger'
|
||||
})
|
||||
|
|
@ -594,7 +594,7 @@ declare const bulmaJS: BulmaJS
|
|||
}
|
||||
|
||||
bulmaJS.confirm({
|
||||
title: `Delete Burial Site Status`,
|
||||
title: 'Delete Burial Site Status',
|
||||
message: `Are you sure you want to delete this status?<br />
|
||||
Note that no burial sites will be removed.`,
|
||||
messageIsHtml: true,
|
||||
|
|
@ -631,7 +631,7 @@ declare const bulmaJS: BulmaJS
|
|||
renderBurialSiteStatuses()
|
||||
} else {
|
||||
bulmaJS.alert({
|
||||
title: `Error Moving Burial Site Status`,
|
||||
title: 'Error Moving Burial Site Status',
|
||||
message: responseJSON.errorMessage ?? '',
|
||||
contextualColorName: 'danger'
|
||||
})
|
||||
|
|
@ -738,7 +738,7 @@ declare const bulmaJS: BulmaJS
|
|||
formElement.querySelector('input')?.focus()
|
||||
} else {
|
||||
bulmaJS.alert({
|
||||
title: `Error Adding Burial Site Status`,
|
||||
title: 'Error Adding Burial Site Status',
|
||||
message: responseJSON.errorMessage ?? '',
|
||||
contextualColorName: 'danger'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
});
|
||||
}
|
||||
bulmaJS.confirm({
|
||||
title: `Delete Contract Relationship`,
|
||||
title: 'Delete Contract Relationship',
|
||||
message: `Are you sure you want to remove the relationship to this contract record from this work order?
|
||||
Note that the contract will remain.`,
|
||||
contextualColorName: 'warning',
|
||||
|
|
@ -75,7 +75,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
}
|
||||
else {
|
||||
bulmaJS.alert({
|
||||
title: `Error Adding Contract`,
|
||||
title: 'Error Adding Contract',
|
||||
message: responseJSON.errorMessage ?? '',
|
||||
contextualColorName: 'danger'
|
||||
});
|
||||
|
|
@ -123,8 +123,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
// eslint-disable-next-line no-unsanitized/property
|
||||
rowElement.innerHTML = `<td class="is-width-1 has-text-centered">
|
||||
${isActive
|
||||
? `<i class="fas fa-play" title="Current Contract"></i>`
|
||||
: `<i class="fas fa-stop" title="Previous Contract"></i>`}
|
||||
? '<i class="fas fa-play" title="Current Contract"></i>'
|
||||
: '<i class="fas fa-stop" title="Previous Contract"></i>'}
|
||||
</td><td>
|
||||
<a class="has-text-weight-bold" href="${sunrise.getContractURL(contract.contractId)}">
|
||||
${cityssm.escapeHTML(contract.contractType ?? '')}
|
||||
|
|
@ -146,7 +146,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
</td>`);
|
||||
}
|
||||
else {
|
||||
rowElement.insertAdjacentHTML('beforeend', `<td><span class="has-text-grey">(No Burial Site)</span></td>`);
|
||||
rowElement.insertAdjacentHTML('beforeend', '<td><span class="has-text-grey">(No Burial Site)</span></td>');
|
||||
}
|
||||
let intermentsHTML = '';
|
||||
for (const interment of contract.contractInterments ?? []) {
|
||||
|
|
@ -167,7 +167,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
: '<span class="has-text-grey">(No End Date)</span>'}
|
||||
</td><td>
|
||||
${contract.contractInterments.length === 0
|
||||
? `<span class="has-text-grey">(No Interments)</span>`
|
||||
? '<span class="has-text-grey">(No Interments)</span>'
|
||||
: `<ul class="fa-ul ml-5">${intermentsHTML}</ul>`}
|
||||
</td><td>
|
||||
<button class="button is-small is-light is-danger button--deleteContract" data-tooltip="Delete Relationship" type="button">
|
||||
|
|
@ -271,7 +271,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
});
|
||||
}
|
||||
bulmaJS.confirm({
|
||||
title: `Delete Burial Site Relationship`,
|
||||
title: 'Delete Burial Site Relationship',
|
||||
message: `Are you sure you want to remove the relationship to this burial site from this work order?
|
||||
Note that the record will remain.`,
|
||||
contextualColorName: 'warning',
|
||||
|
|
@ -473,8 +473,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
const responseJSON = rawResponseJSON;
|
||||
if (responseJSON.burialSites.length === 0) {
|
||||
searchResultsContainerElement.innerHTML = `<div class="message is-info">
|
||||
<p class="message-body">There are no records that meet the search criteria.</p>
|
||||
</div>`;
|
||||
<p class="message-body">There are no records that meet the search criteria.</p>
|
||||
</div>`;
|
||||
return;
|
||||
}
|
||||
searchResultsContainerElement.innerHTML = `<table class="table is-fullwidth is-striped is-hoverable">
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ declare const exports: Record<string, unknown>
|
|||
}
|
||||
|
||||
bulmaJS.confirm({
|
||||
title: `Delete Contract Relationship`,
|
||||
title: 'Delete Contract Relationship',
|
||||
message: `Are you sure you want to remove the relationship to this contract record from this work order?
|
||||
Note that the contract will remain.`,
|
||||
contextualColorName: 'warning',
|
||||
|
|
@ -133,7 +133,7 @@ declare const exports: Record<string, unknown>
|
|||
renderRelatedBurialSitesAndContracts()
|
||||
} else {
|
||||
bulmaJS.alert({
|
||||
title: `Error Adding Contract`,
|
||||
title: 'Error Adding Contract',
|
||||
message: responseJSON.errorMessage ?? '',
|
||||
contextualColorName: 'danger'
|
||||
})
|
||||
|
|
@ -207,8 +207,8 @@ declare const exports: Record<string, unknown>
|
|||
rowElement.innerHTML = `<td class="is-width-1 has-text-centered">
|
||||
${
|
||||
isActive
|
||||
? `<i class="fas fa-play" title="Current Contract"></i>`
|
||||
: `<i class="fas fa-stop" title="Previous Contract"></i>`
|
||||
? '<i class="fas fa-play" title="Current Contract"></i>'
|
||||
: '<i class="fas fa-stop" title="Previous Contract"></i>'
|
||||
}
|
||||
</td><td>
|
||||
<a class="has-text-weight-bold" href="${sunrise.getContractURL(contract.contractId)}">
|
||||
|
|
@ -238,7 +238,7 @@ declare const exports: Record<string, unknown>
|
|||
} else {
|
||||
rowElement.insertAdjacentHTML(
|
||||
'beforeend',
|
||||
`<td><span class="has-text-grey">(No Burial Site)</span></td>`
|
||||
'<td><span class="has-text-grey">(No Burial Site)</span></td>'
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -268,7 +268,7 @@ declare const exports: Record<string, unknown>
|
|||
</td><td>
|
||||
${
|
||||
contract.contractInterments!.length === 0
|
||||
? `<span class="has-text-grey">(No Interments)</span>`
|
||||
? '<span class="has-text-grey">(No Interments)</span>'
|
||||
: `<ul class="fa-ul ml-5">${intermentsHTML}</ul>`
|
||||
}
|
||||
</td><td>
|
||||
|
|
@ -440,7 +440,7 @@ declare const exports: Record<string, unknown>
|
|||
}
|
||||
|
||||
bulmaJS.confirm({
|
||||
title: `Delete Burial Site Relationship`,
|
||||
title: 'Delete Burial Site Relationship',
|
||||
message: `Are you sure you want to remove the relationship to this burial site from this work order?
|
||||
Note that the record will remain.`,
|
||||
contextualColorName: 'warning',
|
||||
|
|
@ -749,8 +749,8 @@ declare const exports: Record<string, unknown>
|
|||
|
||||
if (responseJSON.burialSites.length === 0) {
|
||||
searchResultsContainerElement.innerHTML = `<div class="message is-info">
|
||||
<p class="message-body">There are no records that meet the search criteria.</p>
|
||||
</div>`
|
||||
<p class="message-body">There are no records that meet the search criteria.</p>
|
||||
</div>`
|
||||
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
aria-label="Burial Site"></i>
|
||||
</span>
|
||||
${cityssm.escapeHTML((burialSite.burialSiteName ?? '') === ''
|
||||
? `(No Burial Site Name)`
|
||||
? '(No Burial Site Name)'
|
||||
: burialSite.burialSiteName ?? '')}
|
||||
</li>`;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ declare const exports: Record<string, unknown>
|
|||
</span>
|
||||
${cityssm.escapeHTML(
|
||||
(burialSite.burialSiteName ?? '') === ''
|
||||
? `(No Burial Site Name)`
|
||||
? '(No Burial Site Name)'
|
||||
: burialSite.burialSiteName ?? ''
|
||||
)}
|
||||
</li>`
|
||||
|
|
|
|||
Loading…
Reference in New Issue