Skip to content

Commit

Permalink
Bugfix 'view in kandji' button not working in tab view
Browse files Browse the repository at this point in the history
  • Loading branch information
jc0b committed Aug 29, 2022
1 parent 89f822f commit 4b63a62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/kandji_tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
var kandji_tenant_address = "<?php configAppendFile(__DIR__ . '/../config.php'); echo rtrim(conf('kandji_tenant_address'), '/'); ?>"; // Get the Kandji server address

// Generate buttons and tabs
$('#kandji_view_in').html('<a data-i18n-"kandji.view_in_kandji" class="btn btn-default btn-xs" href="'+kandji_tenant_address+'/devices/'+data['kandji_id']+'" target="_blank" title="'+i18n.t('kandji.view_in_kandji')+'">View in Kandji</a>'); // View in Kandji button
$('#kandji_view_in').html('<a data-i18n-"kandji.view_in_kandji" class="btn btn-default btn-xs" href="'+kandji_tenant_address+'/devices/'+data[0]['kandji_id']+'" target="_blank" title="'+i18n.t('kandji.view_in_kandji')+'">View in Kandji</a>'); // View in Kandji button

var skipThese = ['id','serial_number'];
$.each(data, function(i,d){
Expand Down

0 comments on commit 4b63a62

Please sign in to comment.