devMac in wf

This commit is contained in:
jokob-sk
2025-06-07 07:14:04 +10:00
parent d6260e6fb2
commit 1e13bf6629
5 changed files with 13 additions and 7 deletions

View File

@@ -875,6 +875,11 @@ height: 50px;
margin-bottom: 10px; margin-bottom: 10px;
} }
#notifications .notification-buttons{
margin: 10px;
padding: 10px;
}
#notificationData textarea{ #notificationData textarea{
width: 100%; width: 100%;
} }

View File

@@ -848,7 +848,7 @@ function initializeDatatable (status) {
{targets: [mapIndx(26)], {targets: [mapIndx(26)],
'createdCell': function (td, cellData, rowData, row, col) { 'createdCell': function (td, cellData, rowData, row, col) {
if (!emptyArr.includes(cellData)){ if (!emptyArr.includes(cellData)){
$(td).html (`<span>${renderCustomProps(cellData, rowData[mapIndx(11)])}<span>`); $(td).html (`<span>${renderCustomProps(cellData, rowData[mapIndx(11)])}</span>`);
} else { } else {
$(td).html (''); $(td).html ('');
} }

View File

@@ -1534,7 +1534,7 @@ const handleFailure = (callName, callback) => {
msg = `AJAX call ${callName} failed` msg = `AJAX call ${callName} failed`
console.error(msg); console.error(msg);
// Implement retry logic here if needed // Implement retry logic here if needed
write_notification(msg, 'interrupt') // write_notification(msg, 'interrupt')
}; };
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------

View File

@@ -12,7 +12,7 @@ require 'php/templates/header.php';
<div id="notifications" class="content-wrapper"> <div id="notifications" class="content-wrapper">
<section class="content"> <section class="content">
<div class="box box-gray col-xs-12" > <div class="notification-box box box-gray col-xs-12" >
<div class="box-header"> <div class="box-header">
<h3 class="box-title text-aqua"><?= lang('Notifications_All');?></h3> <h3 class="box-title text-aqua"><?= lang('Notifications_All');?></h3>
</div> </div>
@@ -33,10 +33,11 @@ require 'php/templates/header.php';
</tbody> </tbody>
</table> </table>
<div class="notification-buttons">
<button id="clearNotificationsBtn" class="btn btn-danger"><?= lang("Gen_DeleteAll");?></button> <button id="clearNotificationsBtn" class="btn btn-danger"><?= lang("Gen_DeleteAll");?></button>
<button id="notificationsMarkAllRead" class="btn btn-default"><?= lang("Notifications_Mark_All_Read");?></button> <button id="notificationsMarkAllRead" class="btn btn-default"><?= lang("Notifications_Mark_All_Read");?></button>
</div> </div>
</div>
</div> </div>

View File

@@ -39,7 +39,7 @@
let workflows = []; let workflows = [];
let fieldOptions = [ let fieldOptions = [
"devName", "devOwner", "devType", "devVendor", "devFavorite", "devName", "devMac", "devOwner", "devType", "devVendor", "devFavorite",
"devGroup", "devComments", "devFirstConnection", "devLastConnection", "devGroup", "devComments", "devFirstConnection", "devLastConnection",
"devLastIP", "devStaticIP", "devScan", "devLogEvents", "devAlertEvents", "devLastIP", "devStaticIP", "devScan", "devLogEvents", "devAlertEvents",
"devAlertDown", "devSkipRepeated", "devLastNotification", "devPresentLastScan", "devAlertDown", "devSkipRepeated", "devLastNotification", "devPresentLastScan",