fix(plg:launchpad): include serverstate prop

This commit is contained in:
Zack Spear
2020-09-29 13:44:39 -07:00
parent a4f513db04
commit 7e2adbf19f

View File

@@ -1097,7 +1097,11 @@ unraid-user-profile {
<![CDATA[
<!-- user profile component -->
<?if(empty($wizard['hideWizard']) || $path=='Tools/Registration'):?>
<unraid-launchpad token="<? echo $var['csrf_token'] ?>" openonload="<? echo empty($wizard['hideWizard']) ?>"></unraid-launchpad>
<unraid-launchpad
openonload="<? echo empty($wizard['hideWizard']) ?>"
serverstate="<?=rawurlencode(json_encode($serverstate, JSON_UNESCAPED_SLASHES))?>"
token="<? echo $var['csrf_token'] ?>"
></unraid-launchpad>
<?endif?>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<?