File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 7171 rows = rows + ' <tr><th>' + i18n .t (' wifi.' + prop)+ ' </th><td>' + i18n .t (' wifi.station' )+ ' </td></tr>' ;
7272 }
7373
74+ else if (prop == ' ssid' || prop == ' bssid' ) {
75+ rows = rows + ' <tr><th>' + i18n .t (' wifi.' + prop)+ ' </th><td>' + d[prop]+ ' </td></tr>' ;
76+
77+ // Add the Wi-Fi network name to the client detail if Wi-Fi is the active primary service
78+ if ($ (' .machine-hostname' ).parent ().parent ().parent ().text ().includes (" Wi-Fi" )) {
79+
80+ if (prop == ' bssid' ){
81+ d[prop] = d[prop].toUpperCase ()
82+ }
83+
84+ $ (' .machine-hostname' ).parent ().parent ().parent ()
85+ .append ($ (' <tr>' )
86+ .append ($ (' <th>' )
87+ .append (' Wi-Fi ' + i18n .t (' wifi.' + prop)))
88+ .append ($ (' <td>' )
89+ .append (d[prop])))
90+ }
91+ }
92+
7493 else {
7594 rows = rows + ' <tr><th style="width: 200px;">' + i18n .t (' wifi.' + prop)+ ' </th><td style="max-width: 500px;">' + d[prop]+ ' </td></tr>' ;
7695 }
You can’t perform that action at this time.
0 commit comments