Changeset 2310


Ignore:
Timestamp:
Sep 2, 2013, 4:25:24 PM (5 years ago)
Author:
matthijs
Message:

udiald: Show detailed dialing errors in luci too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/luci/modules/admin-fon/luasrc/view/fon_umtsd/device_list.htm

    r2307 r2310  
    2323end
    2424
    25 function devicestate(state, up, msg)
     25function devicestate(state, up, msg, dial_msg)
    2626        if not state then
    2727                return translate('umts_state_preparing', 'Initializing')
     
    3535                return translate('umts_state_connected', 'Connected')
    3636        elseif state == 'error' then
    37                 return translate('umts_state_error', 'Error') .. ' - ' .. (msg or 'unknown error')
     37                return translate('umts_state_error', 'Error') .. ' - ' .. (msg or 'unknown error') .. (dial_msg and (': ' .. dial_msg) or '')
    3838        else
    3939                return translate('umts_state_unkown', 'Unknown')
     
    6161                <% if device.id == selected_device then %>
    6262                        <td><%= simstate(state:get("network", "wan", "sim_state")) %></td>
    63                         <td><%= devicestate(state:get("network", "wan", "udiald_state"), state:get("network", "wan", "up"), state:get("network", "wan", "udiald_error_msg")) %></td>
     63                        <td><%= devicestate(state:get("network", "wan", "udiald_state"), state:get("network", "wan", "up"), state:get("network", "wan", "udiald_error_msg"), state:get("network", "wan", "udiald_dial_error_msg")) %></td>
    6464                        <td><input type="submit" name="disconnect_<%=device.id%>" value="Disconnect"/>
    6565                            <input type="submit" name="reconnect_<%=device.id%>" value="Reconnect"/></td>
Note: See TracChangeset for help on using the changeset viewer.