luci-mod-network: fix incorrectly reverting vlan device name
Fixes: #6435 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
7fad65e687
commit
b2546c26b5
1 changed files with 1 additions and 1 deletions
|
@ -475,7 +475,7 @@ return baseclass.extend({
|
|||
vid = this.section.formvalue(section_id, 'vid'),
|
||||
name = this.section.getUIElement(section_id, 'name_complex');
|
||||
|
||||
if (base && vid && name && !name.isChanged()) {
|
||||
if (base && vid && name && !name.isChanged() && isNew) {
|
||||
name.setValue('%s.%d'.format(base, vid));
|
||||
name.triggerValidation();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue