tls_certificate页面工具栏增加复制私钥按钮
This commit is contained in:
parent
09ecafc25a
commit
6285f07757
@ -19,16 +19,9 @@ jingrow.ui.form.on('TLS Certificate', {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!frm.pg.wildcard) {
|
if (frm.pg.private_key) {
|
||||||
frm.add_custom_button('Copy Private Key', () => {
|
frm.add_custom_button(__('Copy Private Key'), () => {
|
||||||
jingrow.confirm(
|
jingrow.utils.copy_to_clipboard(frm.pg.private_key);
|
||||||
`Are you sure you want to copy private
|
|
||||||
key. You should ONLY do this for custom
|
|
||||||
domains. And notify user of their
|
|
||||||
responsibility on handling private
|
|
||||||
key.`,
|
|
||||||
() => jingrow.utils.copy_to_clipboard(frm.pg.private_key),
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user