MOBILE-2825 glossary: Delete temporary files after saving entry
parent
7a2f552514
commit
0c428eb257
|
@ -232,6 +232,9 @@ export class AddonModGlossaryEditPage implements OnInit {
|
|||
attach, timecreated, undefined, this.entry, !this.attachments.length, !this.glossary.allowduplicatedentries);
|
||||
}
|
||||
}).then((entryId) => {
|
||||
// Delete the local files from the tmp folder.
|
||||
this.uploaderProvider.clearTmpFiles(this.attachments);
|
||||
|
||||
if (entryId) {
|
||||
// Data sent to server, delete stored files (if any).
|
||||
this.glossaryHelper.deleteStoredFiles(this.glossary.id, this.entry.concept, timecreated);
|
||||
|
|
|
@ -29,7 +29,7 @@ export class AddonModGlossaryHelperProvider {
|
|||
private glossaryOffline: AddonModGlossaryOfflineProvider) {}
|
||||
|
||||
/**
|
||||
* Delete stored attachment files for a new discussion.
|
||||
* Delete stored attachment files for a new entry.
|
||||
*
|
||||
* @param {number} glossaryId Glossary ID.
|
||||
* @param {string} entryName The name of the entry.
|
||||
|
|
Loading…
Reference in New Issue