mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-08 12:12:37 +01:00
Reset download limit to default after uplaoding files
This commit is contained in:
parent
309c7d63ac
commit
f62a99882d
@ -17,6 +17,7 @@ export default class Archive {
|
||||
constructor(files = [], defaultTimeLimit = 86400, defaultDownloadLimit = 1) {
|
||||
this.files = Array.from(files);
|
||||
this.defaultTimeLimit = defaultTimeLimit;
|
||||
this.defaultDownloadLimit = defaultDownloadLimit;
|
||||
this.timeLimit = defaultTimeLimit;
|
||||
this.dlimit = defaultDownloadLimit;
|
||||
this.password = null;
|
||||
@ -76,7 +77,7 @@ export default class Archive {
|
||||
|
||||
clear() {
|
||||
this.files = [];
|
||||
this.dlimit = 1;
|
||||
this.dlimit = this.defaultDownloadLimit;
|
||||
this.timeLimit = this.defaultTimeLimit;
|
||||
this.password = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user