luci-base: uci.js: track packages affected by reorder operations
authorJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 13:10:30 +0000 (15:10 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 13:36:26 +0000 (15:36 +0200)
This is required to properly reload the configurations after applying uci
changes that solely consist of uci section ordering operations.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/uci.js

index f57af6ae766aa71fea8e859367c3e28f06ce0371..17f11eecb879d3575be30dcd6cb981750833f7ee 100644 (file)
@@ -433,6 +433,7 @@ return L.Class.extend({
                    n = this.state.creates,
                    c = this.state.changes,
                    d = this.state.deletes,
+                   r = this.state.reorder,
                    self = this,
                    snew = [ ],
                    pkgs = { },
@@ -480,6 +481,10 @@ return L.Class.extend({
                                pkgs[conf] = true;
                        }
 
+               if (r)
+                       for (var conf in r)
+                               pkgs[conf] = true;
+
                return Promise.all(tasks).then(function(responses) {
                        /*
                         array "snew" holds references to the created uci sections,