Skip to content

Commit

Permalink
fix clean method
Browse files Browse the repository at this point in the history
  • Loading branch information
mam10eks committed Feb 15, 2024
1 parent ceb97c2 commit 6d56916
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pupil-submission-page/src/components/UploadImagesForClass.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</template>

<v-card-actions>
<v-btn @click="available_images=[]">Auswahl L&ouml;schen</v-btn>
<v-btn @click="clean">Auswahl L&ouml;schen</v-btn>
</v-card-actions>
</v-card>
</template>
Expand Down Expand Up @@ -73,6 +73,15 @@ export default {
this.to_upload = []
this.$emit('update')
},
clean() {
this.to_upload=[];
for(let i=1;i<1000; i++) {
this.available_images.pop()
}
this.update_files()
}
}
}
Expand Down

0 comments on commit 6d56916

Please sign in to comment.