LuCI - OpenWrt Configuration Interface
Find a file
Jo-Philipp Wich 2771360108 luci-base: form.js: fix removing just created named GridSection
Since the `handleModalSave()` handler of the GridSection class invokes
`handleModalCancel()` after saving the data but before removing the
`addedSection` property, the `handleModalCancel` handler incorrectly
removed the uci section that has just been created.

This bug didn't affect anonymous GridSections because after saving the
id of the created section changes, causing the remove command to fail,
but for named ones with stable section IDs, the bug manifested.

Solve the issue by passing a flag to `handleModalCancel()` indicating
whether the method was called from a safe operation and use it do
decide whether to delete the new staged uci section or not.

Fixes: #5760
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-07-22 23:41:05 +02:00
.github Merge pull request #5567 from TDT-AG/pr/20211202-github-issue-templates 2022-01-13 10:34:10 +01:00
applications Translated using Weblate (Dutch) 2022-07-19 12:35:29 +03:00
build build: i18n-sync.sh: fix i18n-update.pl invocation 2021-07-22 16:32:35 +02:00
collections luci-lib-docker: add container export support 2021-06-15 22:29:24 +08:00
contrib/package lucihttp: update to latest Git HEAD 2022-07-08 15:26:23 +02:00
docs CI: automatically update jsapi docs 2021-10-08 17:16:04 -10:00
libs rpcd-mod-luci: update filter for rpc_luci_get_network_devices 2022-06-28 11:06:23 +02:00
modules luci-base: form.js: fix removing just created named GridSection 2022-07-22 23:41:05 +02:00
protocols luci-proto-wireguard: gracefully deal with missing uci configs 2022-06-21 00:07:48 +02:00
themes luci-theme-openwrt: optimized image filesize 2022-06-25 01:44:22 +02:00
.gitignore CI: automatically update jsapi docs 2021-10-08 17:16:04 -10:00
CONTRIBUTING.md CONTRIBUTING.md: Fix sign_your_work link. 2020-03-01 14:33:20 -08:00
jsdoc.conf.json docs: various updates 2019-11-07 12:39:24 +01:00
LICENSE * new project: ff-luci - Freifunk Lua Configuration Interface 2008-03-02 21:52:58 +00:00
luci.mk luci.mk: disable english translation packages 2022-07-22 16:21:23 +02:00
NOTICE Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
package.json CI: automatically update jsapi docs 2021-10-08 17:16:04 -10:00
README.md docs: various updates 2019-11-07 12:39:24 +01:00

OpenWrt luci feed

Translation status

Description

This is the OpenWrt "luci"-feed containing LuCI - OpenWrt Configuration Interface.

Usage

This feed is enabled by default. Your feeds.conf.default (or feeds.conf) should contain a line like:

src-git luci https://github.com/openwrt/luci.git

To install all its package definitions, run:

./scripts/feeds update luci
./scripts/feeds install -a -p luci

API Reference

You can browse the generated API documentation directly on Github.

Development

Documentation for developing and extending LuCI can be found in the Wiki

License

See LICENSE file.

Package Guidelines

See CONTRIBUTING.md file.

Translation status

Translation status