juci-sysupgrade: fix online-upgrade from overview keep settings refs #15419
authorReidar Cederqvist <reidar.cederqvist@gmail.com>
Thu, 5 Jul 2018 09:24:13 +0000 (11:24 +0200)
committerSukru Senli <sukru.senli@inteno.se>
Sat, 1 Sep 2018 09:23:00 +0000 (11:23 +0200)
plugins/juci-sysupgrade/src/widgets/overview.online.upgrade.js

index fdf80d0..6294c6b 100644 (file)
@@ -43,7 +43,7 @@ JUCI.app
                                }
                                $scope.showUpgradeStatus = true;
                                $scope.message = $tr(gettext("Your box is upgrading"));
-                               $rpc.$call("juci.sysupgrade", "start", {"path":$scope.upgrade.path, "keep":(btn.value === "keep")?1:0});
+                               $rpc.$call("juci.sysupgrade", "start", {"path":$scope.upgrade.path, "keep":(btn.value === "keep")?"yes":"no"});
                                setTimeout(function(){$scope.error = $tr(gettext("Something went wrong! Try again later"));}, 50000);
                                inst.close();
                        }