diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-07-07 15:10:30 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-07-07 15:36:26 +0200 |
commit | e13822e7096056ead944d1b7b3ff64864d80ccb5 (patch) | |
tree | f78a398a437fad5c6af494644e755cff05dac6ba | |
parent | f743b96882a719c72538c27ebb97c9db425a1647 (diff) |
luci-base: uci.js: track packages affected by reorder operations
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>
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/uci.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/uci.js b/modules/luci-base/htdocs/luci-static/resources/uci.js index f57af6ae7..17f11eecb 100644 --- a/modules/luci-base/htdocs/luci-static/resources/uci.js +++ b/modules/luci-base/htdocs/luci-static/resources/uci.js @@ -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, |