diff --git a/resources/assets/js/api/Menu.js b/resources/assets/js/api/Menu.js index 6b5d5ab6c..1ffcd2b0a 100644 --- a/resources/assets/js/api/Menu.js +++ b/resources/assets/js/api/Menu.js @@ -25,5 +25,22 @@ export let menu = { "Accept-Language": window.config.SYS_LANG } }); + }, + /** + * Get the counter of a specific task + * @param {string} task + * @returns + */ + getTooltip(task) { + return axios.get( + window.config.SYS_SERVER_API + + '/api/1.0/' + + window.config.SYS_WORKSPACE + + '/home/'+ task +'/counter', { + headers: { + 'Authorization': 'Bearer ' + window.config.SYS_CREDENTIALS.accessToken, + "Accept-Language": window.config.SYS_LANG + } + }); } }; diff --git a/resources/assets/js/components/menu/CustomSidebarMenuItem.vue b/resources/assets/js/components/menu/CustomSidebarMenuItem.vue index ecd34f17d..1f9f49ba9 100644 --- a/resources/assets/js/components/menu/CustomSidebarMenuItem.vue +++ b/resources/assets/js/components/menu/CustomSidebarMenuItem.vue @@ -34,7 +34,7 @@ " > - {{ item.title }} + -