2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 19:04:20 +00:00

42_npmjs: fix get command

git-svn-id: https://svn.fhem.de/fhem/trunk@18565 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2019-02-12 01:14:29 +00:00
parent 62329e2d7d
commit e78edb3c75

View File

@ -1226,18 +1226,13 @@ sub CreateInstalledList($$) {
sub CreateOutdatedList($$) { sub CreateOutdatedList($$) {
my ( $hash, $getCmd ) = @_; my ( $hash, $getCmd ) = @_;
my $packages; my $packages;
$packages = $hash->{".fhem"}{npm}{outdatedpackages} $packages = $hash->{".fhem"}{npm}{outdatedpackages};
if ( $getCmd eq 'showUpdateList' );
$packages = $hash->{".fhem"}{npm}{updatedpackages}
if ( $getCmd eq 'showUpdatedList' );
my $ret = '<html><table style="min-width: 450px;"><tr><td>'; my $ret = '<html><table style="min-width: 450px;"><tr><td>';
$ret .= '<table class="block wide">'; $ret .= '<table class="block wide">';
$ret .= '<tr class="even">'; $ret .= '<tr class="even">';
$ret .= "<td><b>Package Name</b></td>"; $ret .= "<td><b>Package Name</b></td>";
$ret .= "<td><b>Current Version</b></td>" $ret .= "<td><b>Current Version</b></td>";
if ( $getCmd eq 'showUpdateList' );
$ret .= "<td><b>Over Version</b></td>" if ( $getCmd eq 'showUpdatedList' );
$ret .= "<td><b>New Version</b></td>"; $ret .= "<td><b>New Version</b></td>";
$ret .= "<td></td>"; $ret .= "<td></td>";
$ret .= '</tr>'; $ret .= '</tr>';