client brief image details - remove image working
This commit is contained in:
parent
c0db3f5238
commit
e1e844d057
12 changed files with 54 additions and 45 deletions
|
|
@ -38,6 +38,7 @@
|
|||
v-if="imageDetails"
|
||||
:imageDetails="imageDetails"
|
||||
@close="imageDetails = null"
|
||||
@remove="removeImage"
|
||||
/>
|
||||
</section>
|
||||
</template>
|
||||
|
|
@ -89,6 +90,11 @@ function beforeSend(event) {
|
|||
function changeSelectedTags(newTags) {
|
||||
selectedTags.value = newTags;
|
||||
}
|
||||
|
||||
function removeImage(target) {
|
||||
console.log("remove", target);
|
||||
images.value = images.value.filter((image) => image.uuid !== target.uuid);
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue