1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-22 17:12:30 +01:00

Fix keyboard save shortcut when saving a new file; closes #2427

This commit is contained in:
Dane Everitt 2020-09-27 09:30:24 -07:00
parent da0b527715
commit ff50940fa6
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -116,7 +116,13 @@ export default () => {
fetchContent={value => {
fetchFileContent = value;
}}
onContentSaved={save}
onContentSaved={() => {
if (action !== 'edit') {
setModalVisible(true);
} else {
save();
}
}}
/>
</div>
<div css={tw`flex justify-end mt-4`}>