Fixed custom website favicon check box not being checked when editing

This commit is contained in:
Julian Prieber 2022-11-10 19:17:41 +01:00
parent 759e859102
commit 87a24b47ca
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ class LinkTypeViewController extends Controller
$data['params'] = json_decode($link['type_params']);
$data['link_title'] = $link->title;
$data['link_url'] = $link->link;
$data['button_id'] = $link->button_id;
}
if (!empty($linkType) && $linkType->typename === 'predefined') {

View File

@ -5,7 +5,7 @@
<input type='url' name='link' value='{{$link_url}}' class='form-control' />
<div class="custom-control custom-checkbox m-2">
<input type="checkbox" class="custom-control-input" value='1' {{((isset($params->GetSiteIcon) ? boolval($params->GetSiteIcon) : false) ? 'checked': '') }} name='GetSiteIcon' id="GetSiteIcon">
<input type="checkbox" class="custom-control-input" value='1' {{((isset($params->GetSiteIcon) ? boolval($params->GetSiteIcon) : false) ? 'checked': '') }} name='GetSiteIcon' id="GetSiteIcon" @if($button_id == 2)checked @endif>
<label class="custom-control-label" for="GetSiteIcon">Show website icon on button</label>