mirror of
https://github.com/timvisee/send.git
synced 2026-03-05 13:39:54 -05:00
a new approach for the ui
This commit is contained in:
@@ -62,7 +62,10 @@ export default class Archive {
|
||||
return true;
|
||||
}
|
||||
|
||||
remove(index) {
|
||||
this.files.splice(index, 1);
|
||||
remove(file) {
|
||||
const index = this.files.indexOf(file);
|
||||
if (index > -1) {
|
||||
this.files.splice(index, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user