Close modals with escape or click outside box

This commit is contained in:
Lasse Hassing committed 2021-06-08 22:55:40 +02:00
1 parent f8a8b66ab2
commit 1a99817e48
4 files changed
+23 -11

No files matched your search

+6
View File
@@ -266,4 +266,10 @@ class Actual extends Component
$this->switchDifferenceCSS = "bg-blue-700";
}
}
public function closeAllModals() {
$this->modalFieldUpdate = false;
$this->modalColumnUpdate = false;
$this->modalDelete = false;
}
}
+7
View File
@@ -300,4 +300,11 @@ class Projected extends Component
}
$this->emitTo('actual', '$refresh');
}
public function closeAllModals() {
$this->modalRowUpdate = false;
$this->modalFieldUpdate = false;
$this->modalColumnUpdate = false;
$this->modalDelete = false;
}
}