Merge branch 'reset-dlimit-to-default' into 'master'
Reset download limit to default after uploading files See merge request timvisee/send!30
This commit is contained in:
commit
70a11e5300
|
@ -17,6 +17,7 @@ export default class Archive {
|
||||||
constructor(files = [], defaultTimeLimit = 86400, defaultDownloadLimit = 1) {
|
constructor(files = [], defaultTimeLimit = 86400, defaultDownloadLimit = 1) {
|
||||||
this.files = Array.from(files);
|
this.files = Array.from(files);
|
||||||
this.defaultTimeLimit = defaultTimeLimit;
|
this.defaultTimeLimit = defaultTimeLimit;
|
||||||
|
this.defaultDownloadLimit = defaultDownloadLimit;
|
||||||
this.timeLimit = defaultTimeLimit;
|
this.timeLimit = defaultTimeLimit;
|
||||||
this.dlimit = defaultDownloadLimit;
|
this.dlimit = defaultDownloadLimit;
|
||||||
this.password = null;
|
this.password = null;
|
||||||
|
@ -76,7 +77,7 @@ export default class Archive {
|
||||||
|
|
||||||
clear() {
|
clear() {
|
||||||
this.files = [];
|
this.files = [];
|
||||||
this.dlimit = 1;
|
this.dlimit = this.defaultDownloadLimit;
|
||||||
this.timeLimit = this.defaultTimeLimit;
|
this.timeLimit = this.defaultTimeLimit;
|
||||||
this.password = null;
|
this.password = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue