(connectionId, key)
| 798 | } |
| 799 | |
| 800 | function addKey (connectionId, key) { |
| 801 | if (typeof(connectionId) === 'object') { |
| 802 | // context menu click |
| 803 | const node = getKeyTree().get_node(connectionId.reference[0]); |
| 804 | connectionId = getRootConnection(node); |
| 805 | const foldingChar = connections.findById(connectionId).foldingChar |
| 806 | key = getFullKeyPath(node); |
| 807 | if (key.length > 0 && !key.endsWith(foldingChar)) { |
| 808 | key = key + foldingChar; |
| 809 | } |
| 810 | } |
| 811 | $('#keyValue').val(key); |
| 812 | $('#addKeyModal').modal('show'); |
| 813 | setupAddKeyButton(connectionId); |
| 814 | } |
| 815 | |
| 816 | function renameKey (connectionId, key) { |
| 817 | if (typeof(connectionId) === 'object') { |
nothing calls this directly
no test coverage detected