added note picto to medium Card responding to note creation on modalCard

This commit is contained in:
2021-03-10 14:54:58 +01:00
parent fbf509a005
commit e0f8b123f9
5 changed files with 38 additions and 10 deletions

View File

@@ -131,6 +131,7 @@ export default {
},
methods: {
...mapActions({
// refreshItem: 'Search/refreshItem',
createFlagColl: 'User/createFlagColl',
flagUnflag: 'User/flagUnflag'
}),
@@ -190,7 +191,18 @@ export default {
if(this.isloggedin){
this.$modal.show(
ModalCard,
{ item: this.item },
{
item: this.item,
// not really an event
// more a callback function passed as prop to the component
addNoteId:(id) => {
// no needs to refresh the entire item via searchresults
// plus if we are in article, there is not searchresults
// this.refreshItem({id: this.item.id})
// instead create the note id directly
this.item.note = {id: id}
}
},
{
name: `modal-${this.item.id}`,
draggable: true,