Skip to content

Commit

Permalink
correction tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
fagubla committed Dec 18, 2024
1 parent 5d3c352 commit 0d487ca
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
15 changes: 15 additions & 0 deletions ProcessMaker/Http/Controllers/CasesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
namespace ProcessMaker\Http\Controllers;

use Illuminate\Support\Facades\Auth;
use ProcessMaker\Events\ModelerStarting;
use ProcessMaker\Events\ScreenBuilderStarting;
use ProcessMaker\Http\Controllers\Controller;
use ProcessMaker\Http\Controllers\Process\ModelerController;
use ProcessMaker\Managers\ModelerManager;
use ProcessMaker\Managers\ScreenBuilderManager;
use ProcessMaker\Models\ProcessRequest;
use ProcessMaker\Models\Screen;
Expand Down Expand Up @@ -40,6 +43,10 @@ public function show($case_number)
// Load event ScreenBuilderStarting
$manager = app(ScreenBuilderManager::class);
event(new ScreenBuilderStarting($manager, 'FORM'));
// Load event ModelerStarting
$managerModeler = app(ModelerManager::class);
event(new ModelerStarting($managerModeler));

// Get all the request related to this case number
$allRequests = ProcessRequest::where('case_number', $case_number)->get();
$parentRequest = null;
Expand Down Expand Up @@ -81,6 +88,12 @@ public function show($case_number)
// Load the process map
$inflightData = $this->loadProcessMap($request);
$bpmn = $inflightData['bpmn'];

// Get all PM-Blocks
$modelerController = new ModelerController();
$pmBlockList = $modelerController->getPmBlockList();
// dd($pmBlockList);

// Return the view
return view('cases.edit', compact(
'request',
Expand All @@ -91,8 +104,10 @@ public function show($case_number)
'canPrintScreens',
'isProcessManager',
'manager',
'managerModeler',
'bpmn',
'inflightData',
'pmBlockList'
));
}

Expand Down
2 changes: 1 addition & 1 deletion ProcessMaker/Traits/ProcessMapTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private function loadProcessMap(ProcessRequest $request): array
'requestCompletedNodes' => $filteredCompletedNodes,
'requestInProgressNodes' => $requestInProgressNodes,
'requestIdleNodes' => $requestIdleNodes,
'requestId' => $request->process->id,
'requestId' => $request->id,
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ import MapLegend from "./MapLegend.vue";
import { getInflightData, getProcessName } from "../variables";
const translate = ProcessMaker.i18n;
const processName = ref(getProcessName());
const processTitle = ref(`${getProcessName()} ${translate.t("In-Flight Map")}`);
// processTitle.value = `${getProcessName()} ${translate.t("In-Flight Map")}`;
const keyModeler = ref(Math.random());
Expand Down
7 changes: 7 additions & 0 deletions resources/views/cases/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ class="tw-grow tw-overflow-hidden"
const requestCount = @json($requestCount);
const inflightData = @json($inflightData);
window.ProcessMaker.PMBlockList = @json($pmBlockList);
window.ProcessMaker.modeler = {
xml: @json($bpmn),
configurables: [],
Expand Down Expand Up @@ -171,6 +173,11 @@ class="tw-grow tw-overflow-hidden"
@foreach($manager->getScripts() as $script)
<script src="{{$script}}"></script>
@endforeach
@foreach($managerModeler->getScripts() as $script)
@if (!str_contains($script, 'slideshow'))
<script src="{{ $script }}"></script>
@endif
@endforeach
@endsection

@section('css')
Expand Down

0 comments on commit 0d487ca

Please sign in to comment.