Skip to content

Commit

Permalink
Hide View Detailed Visitor Log link when realtime visits widget is em…
Browse files Browse the repository at this point in the history
…bedded. (matomo-org#14077)

* Hide View Detailed Visitor Log link when realtime visits widget is embedded.

* Use disableLink parameter for all widgets in standalone dashboard.

* Fix disableLink check
  • Loading branch information
diosmosis authored and sgiehl committed Feb 25, 2019
1 parent f32a681 commit 4f7150f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/Dashboard/javascripts/widgetMenu.js
Expand Up @@ -145,9 +145,7 @@ widgetsHelper.getWidgetNameFromUniqueId = function (uniqueId, callback) {
*/
widgetsHelper.loadWidgetAjax = function (widgetUniqueId, widgetParameters, onWidgetLoadedCallback, onWidgetErrorCallback) {
var disableLink = broadcast.getValueFromUrl('disableLink');
if (disableLink.length) {
widgetParameters['disableLink'] = disableLink;
}
widgetParameters['disableLink'] = disableLink.length || $('body#standalone').length;

widgetParameters['widget'] = 1;

Expand Down
1 change: 1 addition & 0 deletions plugins/Live/stylesheets/live.less
Expand Up @@ -530,3 +530,4 @@ a.visitor-log-visitor-profile-link {
width:65%;
}
}

0 comments on commit 4f7150f

Please sign in to comment.