diff --git a/ui/lib/js/modules.js b/ui/lib/js/modules.js index 545e5f75..53c5e99e 100644 --- a/ui/lib/js/modules.js +++ b/ui/lib/js/modules.js @@ -257,6 +257,14 @@ export const logs = { clearOtherPages(state) { const id = location.href?.replace(location.origin, "") state.pages = state.pages.filter(e => e.id == id) || [] + }, + setPageTitle(state, title) { + const id = location.href?.replace(location.origin, "") + state.pages.map(e => { + if (e.id == id) { + e.label = title + } + }) } }, actions: {