From 98fbfca0276878c7b40687a62bbb0ebc4172bc00 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Wed, 19 Jun 2024 09:20:23 -0500 Subject: [PATCH] Fix graph row lazy loading (#16145) --- app/View/Components/Graph.php | 1 + resources/views/components/graph.blade.php | 2 +- resources/views/components/linked-graph.blade.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/View/Components/Graph.php b/app/View/Components/Graph.php index 4a2802f8caf9..97a603715e42 100644 --- a/app/View/Components/Graph.php +++ b/app/View/Components/Graph.php @@ -130,6 +130,7 @@ public function filterAttributes($value, $key): bool return ! in_array($key, [ 'legend', 'height', + 'loading', ]); } diff --git a/resources/views/components/graph.blade.php b/resources/views/components/graph.blade.php index a394e20e2531..b174e48a85f1 100644 --- a/resources/views/components/graph.blade.php +++ b/resources/views/components/graph.blade.php @@ -1 +1 @@ -{{ $type }}merge(['class' => 'graph-image'])->filter($filterAttributes) }}> +{{ $type }}merge(['class' => 'graph-image'])->filter($filterAttributes) }} {{ $attributes->only('loading') }}> diff --git a/resources/views/components/linked-graph.blade.php b/resources/views/components/linked-graph.blade.php index c908bb885e26..09f1fd03dafa 100644 --- a/resources/views/components/linked-graph.blade.php +++ b/resources/views/components/linked-graph.blade.php @@ -1 +1 @@ -filter($filterAttributes) }}>{{ $type }} +filter($filterAttributes) }}>{{ $type }}only('loading') }}>