function addPostedTxDownloadLink() {
    const postedTxs = document.querySelector('div[name="postedTransactions"]')

    if (postedTxs != undefined) {
        // if there is no posted transactions, show "No Posted Transactions"
        var downloadLink = document.createElement('div');
        downloadLink.innerHTML = 'No Posted Transactions';

        const data = transactionToCsv();
        if (data) {
            downloadLink = createCsvDownloadLink(data);
        }

        postedTxs.parentNode.insertBefore(downloadLink, postedTxs)
    }
}
/**
 * Adding a link to download posted transactions.
 */
Adding a link to download posted transactions.
Adding a link to download posted transactions .
function addPostedTxDownloadLink() {
    const postedTxs = document.querySelector('div[name="postedTransactions"]')
    if (postedTxs != undefined) {
        var downloadLink = document.createElement('div');
        downloadLink.innerHTML = 'No Posted Transactions';
        const data = transactionToCsv();
        if (data) {
            downloadLink = createCsvDownloadLink(data);
        }
        postedTxs.parentNode.insertBefore(downloadLink, postedTxs)
    }
}
function addPostedTxDownloadLink ( ) { const postedTxs = document . querySelector ( 'div[name="postedTransactions"]' ) if ( postedTxs != undefined ) { var downloadLink = document . createElement ( 'div' ) ; downloadLink . innerHTML = 'No Posted Transactions' ; const data = transactionToCsv ( ) ; if ( data ) { downloadLink = createCsvDownloadLink ( data ) ; } postedTxs . parentNode . insertBefore ( downloadLink , postedTxs ) } }
Adding a link to download posted transactions.
Adding a link to download posted transactions .
// if there is no posted transactions, show "No Posted Transactions"