Files
Leantime/app/Domain/Help/Templates/helpermodal.blade.php
wangruiguo d647428529
Some checks failed
Security Audit / Composer Security Audit (push) Has been cancelled
Security Audit / NPM Security Audit (push) Has been cancelled
Security Audit / CodeQL Analysis (push) Has been cancelled
OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
2026-09-03 18:49:20 +08:00

23 lines
916 B
PHP

<script>
jQuery(document).ready(function () {
// First login flow
@if($isFirstLogin === true || $isFirstLogin === "true")
leantime.helperController.firstLoginModal();
@else
// Returning user flow
@if(($isFirstLogin === false || $isFirstLogin === "false") && $showHelperModal === true)
// Show the appropriate helper modal for the current page
@if(is_array($currentModal) && isset($currentModal['autoLoad']) && ($currentModal['autoLoad'] === true || $currentModal['autoLoad'] === "true"))
leantime.helperController.showHelperModal('{{ $currentModal['template'] }}', 500, 700);
@elseif(is_string($currentModal))
leantime.helperController.showHelperModal('{{ $currentModal}}', 500, 700);
@endif
@endif
@endif
});
</script>