From 5d8f425c64a08a476c96624dc5faec4620ad6d0b Mon Sep 17 00:00:00 2001 From: Eleazar Resendez Date: Thu, 23 Nov 2023 16:40:09 -0600 Subject: [PATCH] Refactor in-flight map loading logic --- resources/views/requests/show.blade.php | 42 +++++++++++++++++++------ 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/resources/views/requests/show.blade.php b/resources/views/requests/show.blade.php index f1bd34c3dc..7b492217b6 100644 --- a/resources/views/requests/show.blade.php +++ b/resources/views/requests/show.blade.php @@ -236,14 +236,26 @@ class="tab-pane card card-body border-top-0 p-3">

{{ __(':name In-Flight Map', ['name' => $request->process->name]) }}

-
+
-
- +
+ + +

+ {{ __('Content not available. Check settings or try a different device.') }} +

+
@@ -419,7 +431,7 @@ class="d-inline-flex pull-left align-items-center" :input-data="requestBy" displ packages: [], processId: @json($request->process->id), canViewComments: @json($canViewComments), - iframeLoading: false, + isObjectLoading: false, showTree: false, }; }, @@ -543,12 +555,12 @@ classStatusCard() { switchTab(tab) { this.activeTab = tab; if (tab === 'overview') { - this.iframeLoading = true; + this.isObjectLoading = true; } ProcessMaker.EventBus.$emit('tab-switched', tab); }, - onLoadIframe() { - this.iframeLoading = false; + onLoadedObject() { + this.isObjectLoading = false; }, requestStatusClass(status) { status = status.toLowerCase(); @@ -735,3 +747,13 @@ classStatusCard() { }); @endsection + +@section('css') + +@endsection