activity: add limiting settings

limit to keeping n most recent logs, and/or logs younger than {n} days
in settings > Activity Log.
This commit is contained in:
Harvey Tindall
2023-10-23 12:50:42 +01:00
parent 663389693f
commit 44d7e173e3
4 changed files with 69 additions and 5 deletions
+1 -1
View File
@@ -704,7 +704,7 @@ export class activityList {
if (this._search.inSearch && !this._lastPage) this._loadAllButton.classList.remove("unfocused");
else this._loadAllButton.classList.add("unfocused");
if (visibleCount < 10) {
if (visibleCount < 10 || loadAll) {
if (!newItems || this._prevResultCount != visibleCount || (visibleCount == 0 && !this._lastPage) || loadAll) this.loadMore(() => {}, loadAll);
}
this._prevResultCount = visibleCount;