luci-mod-network: clarify device settings "Delete" button

Use proper label text "Unconfigure" for button which "Remove related device settings".

Ref: #5090, #5092
Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
This commit is contained in:
Sven Roederer 2021-07-15 14:54:21 +02:00 committed by Florian Eckert
parent 8c35a940fe
commit 1b58decdab

View file

@ -1273,7 +1273,7 @@ return view.extend({
var trEl = this.super('renderRowActions', [ section_id, _('Configure…') ]),
deleteBtn = trEl.querySelector('button:last-child');
deleteBtn.firstChild.data = _('Reset');
deleteBtn.firstChild.data = _('Unconfigure');
deleteBtn.setAttribute('title', _('Remove related device settings from the configuration'));
deleteBtn.disabled = section_id.match(/^dev:/) ? true : null;