fixed the issue where dashboard wasnt displaying the page content
This commit is contained in:
parent
b92fc29e3c
commit
8fce9dfddb
|
|
@ -1,5 +1,5 @@
|
||||||
<x-layouts.app.sidebar :title="$title ?? null">
|
<x-layouts.app.sidebar :title="$title ?? null">
|
||||||
<flux:main>
|
<flux:main id="main-content">
|
||||||
{{ $slot }}
|
{{ $slot }}
|
||||||
</flux:main>
|
</flux:main>
|
||||||
</x-layouts.app.sidebar>
|
</x-layouts.app.sidebar>
|
||||||
|
|
|
||||||
|
|
@ -325,9 +325,7 @@
|
||||||
</flux:dropdown>
|
</flux:dropdown>
|
||||||
</flux:header>
|
</flux:header>
|
||||||
|
|
||||||
<main id="main-content" role="main" tabindex="-1">
|
|
||||||
{{ $slot }}
|
{{ $slot }}
|
||||||
</main>
|
|
||||||
|
|
||||||
@fluxScripts
|
@fluxScripts
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
|
|
@ -386,7 +386,7 @@ new class extends Component
|
||||||
chart: null,
|
chart: null,
|
||||||
data: @js($chartData),
|
data: @js($chartData),
|
||||||
init() {
|
init() {
|
||||||
if (typeof Chart === 'undefined') return;
|
if (typeof Chart === 'undefined' || !this.$refs.canvas) return;
|
||||||
this.chart = new Chart(this.$refs.canvas, {
|
this.chart = new Chart(this.$refs.canvas, {
|
||||||
type: 'line',
|
type: 'line',
|
||||||
data: {
|
data: {
|
||||||
|
|
@ -454,7 +454,7 @@ new class extends Component
|
||||||
chart: null,
|
chart: null,
|
||||||
data: @js($chartData['consultationBreakdown']),
|
data: @js($chartData['consultationBreakdown']),
|
||||||
init() {
|
init() {
|
||||||
if (typeof Chart === 'undefined') return;
|
if (typeof Chart === 'undefined' || !this.$refs.canvas) return;
|
||||||
const total = this.data.free + this.data.paid;
|
const total = this.data.free + this.data.paid;
|
||||||
this.chart = new Chart(this.$refs.canvas, {
|
this.chart = new Chart(this.$refs.canvas, {
|
||||||
type: 'doughnut',
|
type: 'doughnut',
|
||||||
|
|
@ -515,7 +515,7 @@ new class extends Component
|
||||||
chart: null,
|
chart: null,
|
||||||
data: @js($chartData),
|
data: @js($chartData),
|
||||||
init() {
|
init() {
|
||||||
if (typeof Chart === 'undefined') return;
|
if (typeof Chart === 'undefined' || !this.$refs.canvas) return;
|
||||||
this.chart = new Chart(this.$refs.canvas, {
|
this.chart = new Chart(this.$refs.canvas, {
|
||||||
type: 'line',
|
type: 'line',
|
||||||
data: {
|
data: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue