Merge pull request #6746 from lasniscinote/gl_SCI_9818

(fix) Red dot reminder is not upadated on item card [SCI-9818]
This commit is contained in:
Martin Artnik 2023-12-04 09:49:53 +01:00 committed by GitHub
commit 176c181a86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View file

@ -279,6 +279,11 @@ export default {
inRepository: false
}
},
provide() {
return {
reloadRepoItemSidebar: this.reload,
}
},
created() {
window.repositoryItemSidebarComponent = this;
},

View file

@ -54,9 +54,10 @@
endDate: null,
error: null,
defaultStartDate: null,
defaultEndDate: null
defaultEndDate: null,
}
},
inject: ['reloadRepoItemSidebar'],
props: {
mode: String,
range: { type: Boolean, default: false },
@ -171,7 +172,10 @@
success: () => {
this.defaultStartDate = this.startDate;
this.defaultEndDate = this.endDate;
if ($('.dataTable')[0]) $('.dataTable').DataTable().ajax.reload(null, false);
if ($('.dataTable')[0]) {
$('.dataTable').DataTable().ajax.reload(null, false);
this.reloadRepoItemSidebar();
}
}
});
},