Fixed custom website favicon check box not being checked when editing
This commit is contained in:
parent
759e859102
commit
87a24b47ca
|
@ -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') {
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue