From 7b6b0d01391736c1b38807a6f5a0d0fd00e98450 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 7 Oct 2025 10:43:14 +0200 Subject: [PATCH] luci-base: add getPending ubus function call MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Exporting the ubus “pending” information so that this information can be used in LuCI. Signed-off-by: Florian Eckert --- .../luci-base/htdocs/luci-static/resources/network.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js index 43dded3295..7ce3e44c52 100644 --- a/modules/luci-base/htdocs/luci-static/resources/network.js +++ b/modules/luci-base/htdocs/luci-static/resources/network.js @@ -2560,6 +2560,16 @@ Protocol = baseclass.extend(/** @lends LuCI.network.Protocol.prototype */ { return (this._ubus('dynamic') == true); }, + /** + * Checks whether this logical interface is pending. + * + * @returns {boolean} + * returns `true` when the interface is pending or `false` when it is not. + */ + isPending: function() { + return (this._ubus('pending') == true); + }, + /** * Checks whether this interface is an alias interface. * -- 2.30.2