Ignore:
Timestamp:
2021-12-10T10:41:08+13:00 (2 years ago)
Author:
cstephen
Message:

Improve file downloading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/atea/macron-restoration/src/js/MacronRestorationModule.js

    r35772 r35787  
    111111        }
    112112    }
     113
     114    /**
     115     * Builds a URL used to retrieve a file.
     116     * @param {String} filePath The path of the file to download.
     117     * @param {String} fileName The name to display in the download response.
     118     */
     119    buildDownloadUrl(filePath, fileName) {
     120        return `${this.rootQueryUrl}download?filepath=${filePath}&filename=${fileName}`;
     121    }
    113122}
Note: See TracChangeset for help on using the changeset viewer.