| 575 | template.find('button[data-action="add-secret"]').on('click', async function () { | 575 | template.find('button[data-action="add-secret"]').on('click', async function () { |
| 576 | let label = ''; | 576 | let label = ''; |
| 577 | let result = POPUP_RESULT.CANCELLED; | 577 | let result = POPUP_RESULT.CANCELLED; |
| 578 | const value = await Popup.show.input(t`Add Secret`, t`Enter the secret value (can be empty):`, '', { | 578 | const value = await Popup.show.input(t`Add Secret`, t`Secret value (can be empty):`, '', { |
| 579 | customInputs: [{ | 579 | customInputs: [{ |
| 580 | id: 'newSecretLabel', | 580 | id: 'newSecretLabel', |
| 581 | type: 'text', | 581 | type: 'text', |
| 582 | label: t`Enter a label for the secret (optional):`, | 582 | label: t`Label (optional):`, |
| 583 | }], | 583 | }], |
| 584 | onClose: popup => { | 584 | onClose: popup => { |
| 585 | if (popup.result) { | 585 | if (popup.result) { |