added note picto to medium Card responding to note creation on modalCard
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user