Skip to content

Commit f8105d6

Browse files
committed
[version-info] intercom and feedback link cases changed.
- when parameter is false, hidden feedback and support section. - when parameter is true, show section and call intercom dialog. - when parameter is string, redirect user to custom url via new tab.
1 parent 16c826e commit f8105d6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

frontend/express/views/dashboard.html

+8-2
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
</a>
169169
<% if (!countlyType) { %>
170170
<% if((intercom && member['global_admin'] || config.autonomous) && (typeof feedbackLink === "string")) { %>
171-
<a href="<%= feedbackLink %>" class="item activate_intercom">
171+
<a target="_new" href="<%= feedbackLink %>" class="item">
172172
<i class="ion-android-textsms icon"></i>
173173
<span data-localize="common.feedback-and-support"></span>
174174
</a>
@@ -192,7 +192,13 @@
192192
</a>
193193
<% } %>
194194
<% } else { %>
195-
<% if((intercom && member['global_admin'] || config.autonomous) && feedbackLink) { %>
195+
<% if((intercom && member['global_admin'] || config.autonomous) && (typeof feedbackLink === "string")) { %>
196+
<a target="_new" href="<% feedbackLink %>" class="item">
197+
<i class="ion-android-textsms icon"></i>
198+
<span data-localize="common.provide-feedback"></span>
199+
</a>
200+
<% } %>
201+
<% if((intercom && member['global_admin'] || config.autonomous) && (typeof feedbackLink === "boolean" && feedbackLink)) { %>
196202
<a class="item activate_intercom">
197203
<i class="ion-android-textsms icon"></i>
198204
<span data-localize="common.provide-feedback"></span>

0 commit comments

Comments
 (0)