mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -88,7 +88,12 @@ export const EnvironmentVariables = ({ environmentId, children }: Props) => {
|
||||
// Add keyboard shortcut for Ctrl+S/Cmd+S
|
||||
useEffect(() => {
|
||||
const handleKeyDown = (e: KeyboardEvent) => {
|
||||
if ((e.ctrlKey || e.metaKey) && e.code === "KeyS" && !isPending && isOpen) {
|
||||
if (
|
||||
(e.ctrlKey || e.metaKey) &&
|
||||
e.code === "KeyS" &&
|
||||
!isPending &&
|
||||
isOpen
|
||||
) {
|
||||
e.preventDefault();
|
||||
form.handleSubmit(onSubmit)();
|
||||
}
|
||||
|
||||
@@ -87,7 +87,12 @@ export const ProjectEnvironment = ({ projectId, children }: Props) => {
|
||||
// Add keyboard shortcut for Ctrl+S/Cmd+S
|
||||
useEffect(() => {
|
||||
const handleKeyDown = (e: KeyboardEvent) => {
|
||||
if ((e.ctrlKey || e.metaKey) && e.code === "KeyS" && !isPending && isOpen) {
|
||||
if (
|
||||
(e.ctrlKey || e.metaKey) &&
|
||||
e.code === "KeyS" &&
|
||||
!isPending &&
|
||||
isOpen
|
||||
) {
|
||||
e.preventDefault();
|
||||
form.handleSubmit(onSubmit)();
|
||||
}
|
||||
|
||||
@@ -87,7 +87,12 @@ export const EditTraefikEnv = ({ children, serverId }: Props) => {
|
||||
// Add keyboard shortcut for Ctrl+S/Cmd+S
|
||||
useEffect(() => {
|
||||
const handleKeyDown = (e: KeyboardEvent) => {
|
||||
if ((e.ctrlKey || e.metaKey) && e.code === "KeyS" && !isPending && !canEdit) {
|
||||
if (
|
||||
(e.ctrlKey || e.metaKey) &&
|
||||
e.code === "KeyS" &&
|
||||
!isPending &&
|
||||
!canEdit
|
||||
) {
|
||||
e.preventDefault();
|
||||
form.handleSubmit(onSubmit)();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user