tabs: add clearURL method, loading tabs clears previous qps

Navigatable has clearURL, which for Search clears "search" qp, and
invites clears "invite" qp. Tab interfaces optionally include
"contentObject: AsTab", and show/hide funcs are passed the contentObject
of the previously loaded tab if one is available, so that they can call
it's clearURL method. This means searches you typed for the accounts tab
won't pop up when switching to activity.
This commit is contained in:
Harvey Tindall
2026-01-05 10:39:20 +00:00
parent 721b209e1f
commit ee96bb9f1b
7 changed files with 50 additions and 11 deletions

View File

@@ -2516,6 +2516,10 @@ export class accountsList extends PaginatedList implements Navigatable, AsTab {
if (details) this.details(details);
});
};
clearURL() {
this._search.clearURL();
}
}
// An alternate view showing accounts in sub-lists grouped by group/label.