fix: hide type tabs when embedded in home page

This commit is contained in:
2026-07-17 13:41:29 +08:00
parent 0bd32a1549
commit 5e998b2201
2 changed files with 4 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ const HomePage = {
document.querySelectorAll('#home-content .tab-nav button').forEach(b => { b.onclick = () => App.navigate('home', b.dataset.tab); });
const ct = document.getElementById('home-tab');
if (t === 'tracking') this.renderTracking(ct);
else TicketCreate.render(ct, { type: t, prefill: {}, backLink: null });
else TicketCreate.render(ct, { type: t, prefill: {}, backLink: null, hideTabs: true });
},
renderTracking(ct) {