vpn: ipsec: Add description field to pre-shared-keys (#8015)

This commit is contained in:
Monviech 2024-10-25 16:11:07 +02:00 committed by GitHub
parent 301052443b
commit 69d6a46810
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class PreSharedKeysController extends ApiMutableModelControllerBase
*/
public function searchItemAction()
{
return $this->searchBase('preSharedKeys.preSharedKey', ['ident', 'remote_ident', 'keyType']);
return $this->searchBase('preSharedKeys.preSharedKey', ['ident', 'remote_ident', 'keyType', 'description']);
}
/**

View File

@ -21,4 +21,9 @@
<label>Type</label>
<type>dropdown</type>
</field>
<field>
<id>preSharedKey.description</id>
<label>Description</label>
<type>text</type>
</field>
</form>

View File

@ -146,6 +146,7 @@
</OptionValues>
</keyType>
<Key type="TextField"/>
<description type="DescriptionField"/>
</preSharedKey>
</preSharedKeys>
</items>

View File

@ -20,6 +20,7 @@
<th data-column-id="ident" data-type="string">{{ lang._('Local Identifier') }}</th>
<th data-column-id="remote_ident" data-type="string">{{ lang._('Remote Identifier') }}</th>
<th data-column-id="keyType" data-width="20em" data-type="string">{{ lang._('Key Type') }}</th>
<th data-column-id="description" data-type="string">{{ lang._('Description') }}</th>
<th data-column-id="commands" data-width="7em" data-formatter="commands" data-sortable="false">{{ lang._('Commands') }}</th>
</tr>
</thead>