Skip to content

Commit

Permalink
added: docs link under brandSrc json condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Mar 19, 2024
1 parent 79abe73 commit 50ba9cc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
35 changes: 16 additions & 19 deletions src/assets/twp/index-dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,13 @@
/** HEADER-LOGO **/
brandJson['COMMON'].BASE_LOGO_WHITE? document.getElementById('header-logo').src = brandJson['COMMON'].BASE_LOGO_WHITE : null;
/** HEADER-DOCS RESOURCES **/
document.getElementsByClassName('docs')[0].style.display = 'none'
brandJson['COMMON'].DOCS? null: document.getElementById('share').style.display = 'none';
if(brandJson['COMMON'].DOCS === false){
var el = document.getElementsByClassName('docs')
for (var i = 0; i < el.length; i++) {
document.getElementsByClassName('docs').item(i).style.display = 'none'
}
}
/** IFRAME TITLE**/
brandJson['COMMON'].COMPANY_LOGO? document.getElementById('tiledeskiframe').title = brandJson['COMMON'].COMPANY_NAME + ' Widget' : null;
}
Expand Down Expand Up @@ -1752,7 +1758,7 @@ <h3 id="project_name" style="min-height: 39px;"></h3>
</div>
<div class="row section c21-parameters">
<div><h3 style="line-height: 0.3;">MANAGE <em><strong>widget settings</strong></em></h3></div>
<div>Select an option for Tiledesk settings parameter</div>
<div class="docs">Select an option for Tiledesk settings parameter</div>
<div class="row">
<div class="col-md-5 formElement"><span><em><strong>disconnectTime</strong></em></span></div>
<div class="col-md-5">
Expand Down Expand Up @@ -2180,10 +2186,9 @@ <h3 id="project_name" style="min-height: 39px;"></h3>
</div>
</div>

<div class="row">
<h4 class="col-md-10 formElement">Manage SOCIAL CHANNELS <span style="font-size:12px"> (parameter accepted only in window.tiledeskSettings object)</span>
</h4>
</div>
<div><h3 style="line-height: 0.3;">MANAGE <em><strong>SOCIAL CHANNELS</strong></em></h3></div>
<div class="docs"> (parameter accepted only in window.tiledeskSettings object)</div>

<div class="row">
<div class="col-md-5 formElement"><span><em><strong>whatsappNumber</strong></em></span></div>
<div class="col-md-5">
Expand Down Expand Up @@ -2213,10 +2218,7 @@ <h4 class="col-md-10 formElement">Manage SOCIAL CHANNELS <span style="font-size:
</div>



<div class="row">
<h4 class="col-md-10 formElement" >Manage CONVERSATION DETAIL</h4>
</div>
<div><h3 style="line-height: 0.3;">MANAGE <em><strong>CONVERSATION DETAIL</strong></em></h3></div>
<div class="row">
<div class="col-md-5 formElement"><span><em><strong>hideHeaderCloseButton</strong></em></span></div>
<div class="col-md-5">
Expand Down Expand Up @@ -2344,7 +2346,7 @@ <h4 class="col-md-10 formElement" >Manage CONVERSATION DETAIL</h4>
</div>
</div>
<div class="row">
<div class="col-md-5 formElement"><span><em><strong>fileUploadAccept</strong></em> (more<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept#unique_file_type_specifiers"> here</a>)</span></div>
<div class="col-md-5 formElement"><em><strong>fileUploadAccept</strong></em><span class="docs">(more<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept#unique_file_type_specifiers"> here</a>)</span></div>
<div class="col-md-5">
<input class="form-control" type="text" id="fileUploadAccept" name="fileUploadAccept" placeholder="Set a comma separated string...">
</div>
Expand All @@ -2364,9 +2366,7 @@ <h4 class="col-md-10 formElement" >Manage CONVERSATION DETAIL</h4>
</div>


<div class="row">
<h4 class="col-md-10 formElement" >Manage BUBBLE MESSAGE STYLES</h4>
</div>
<div><h3 style="line-height: 0.3;">MANAGE <em><strong>BUBBLE MESSAGE STYLES</strong></em></h3></div>
<div class="row">
<div class="col-md-5 formElement"><span><em><strong>bubbleSentBackground</strong></em></span></div>
<div class="col-md-5 formElement">
Expand Down Expand Up @@ -2418,10 +2418,7 @@ <h4 class="col-md-10 formElement" >Manage BUBBLE MESSAGE STYLES</h4>
</div>



<div class="row">
<h4 class="col-md-10 formElement" >Manage BUTTON STYLES</h4>
</div>
<div><h3 style="line-height: 0.3;">MANAGE <em><strong>BUTTON STYLES</strong></em></h3></div>
<div class="row">
<div class="col-md-5 formElement"><span><em><strong>buttonBackgroundColor</strong></em></span></div>
<div class="col-md-5 formElement">
Expand Down Expand Up @@ -2492,7 +2489,7 @@ <h2></h2>
<div class="b_integrations_agent_links">
<a href="" data-toggle="modal" data-target="#embedModal" id="enbed" style="display: none;"><i class="fa-code fa"></i>Embed</a>
<!-- <a href="mailto:?subject=Tiledesk%20widget%20test%20page"><i class="fa-envelope-o fa" target="_blank"></i>Email</a> -->
<a href="" data-toggle="modal" data-target="#shareModal"><i class="fa-reply fa"></i>Share</a>
<a href="" data-toggle="modal" data-target="#shareModal" id="share"><i class="fa-reply fa"></i>Share</a>
</div>
</div>

Expand Down
3 changes: 2 additions & 1 deletion src/assets/twp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
brandJson['COMMON'].BASE_LOGO_WHITE? document.getElementById('header-logo').src = brandJson['COMMON'].BASE_LOGO_WHITE : null;
/** HEADER-DOCS RESOURCES **/
document.getElementsByClassName('docs')[0].style.display = 'none'
brandJson['COMMON'].DOCS? null: document.getElementById('share').style.display = 'none'
/** IFRAME TITLE**/
brandJson['COMMON'].COMPANY_LOGO? document.getElementById('tiledeskiframe').title = brandJson['COMMON'].COMPANY_NAME + ' Widget' : null;
}
Expand Down Expand Up @@ -519,7 +520,7 @@ <h1 id="project_name" style="min-height: 39px;"></h1>
<h2></h2>
<div class="b_integrations_agent_links">
<a href="" data-toggle="modal" data-target="#embedModal" id="enbed" style="display: none;"><em class="fa-code fa"></em>Embed</a>
<a href="" data-toggle="modal" data-target="#shareModal"><em class="fa-reply fa"></em>Share</a>
<a href="" data-toggle="modal" data-target="#shareModal" id="share"><em class="fa-reply fa"></em>Share</a>
</div>
</div>

Expand Down

0 comments on commit 50ba9cc

Please sign in to comment.