mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Always show More button. Update page filter.
This commit is contained in:
parent
15ea2ba913
commit
a56738597d
2 changed files with 3 additions and 7 deletions
|
|
@ -99,7 +99,7 @@ export default function MetricsTable({
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.footer}>
|
<div className={styles.footer}>
|
||||||
{limit && data.length > limit && (
|
{limit && (
|
||||||
<Button icon={<Arrow />} size="xsmall" onClick={() => onExpand(type)}>
|
<Button icon={<Arrow />} size="xsmall" onClick={() => onExpand(type)}>
|
||||||
<div>
|
<div>
|
||||||
<FormattedMessage id="button.more" defaultMessage="More" />
|
<FormattedMessage id="button.more" defaultMessage="More" />
|
||||||
|
|
|
||||||
|
|
@ -13,17 +13,13 @@ export const urlFilter = (data, { raw }) => {
|
||||||
|
|
||||||
const cleanUrl = url => {
|
const cleanUrl = url => {
|
||||||
try {
|
try {
|
||||||
const { pathname, search, searchParams } = new URL(url);
|
const { pathname, search } = new URL(url);
|
||||||
|
|
||||||
if (search.startsWith('?/')) {
|
if (search.startsWith('?/')) {
|
||||||
return `${pathname}${search}`;
|
return `${pathname}${search}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const path = removeTrailingSlash(pathname);
|
return removeTrailingSlash(pathname);
|
||||||
const ref = searchParams.get('ref');
|
|
||||||
const query = ref ? `?ref=${ref}` : '';
|
|
||||||
|
|
||||||
return `${path}${query}`;
|
|
||||||
} catch {
|
} catch {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue