From 3eecfbf0604b14bcea55dcf4fc168af3c61381f5 Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Thu, 4 Nov 2021 14:17:59 +0300 Subject: [PATCH] Fix Dropdown and forms (#296) Signed-off-by: Alexander Platov --- .../presentation/src/components/UserBox.svelte | 14 +++++++++----- packages/theme/styles/_layouts.scss | 7 ++++--- packages/ui/src/components/Dropdown.svelte | 16 +++++++++++----- packages/ui/src/components/PopupInstance.svelte | 5 ++++- .../src/components/CreateCandidates.svelte | 5 ++++- .../src/components/CreateVacancy.svelte | 4 ++++ 6 files changed, 36 insertions(+), 15 deletions(-) diff --git a/packages/presentation/src/components/UserBox.svelte b/packages/presentation/src/components/UserBox.svelte index 9f8861424c..c110eb1be1 100644 --- a/packages/presentation/src/components/UserBox.svelte +++ b/packages/presentation/src/components/UserBox.svelte @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. --> + - + diff --git a/plugins/recruit-resources/src/components/CreateCandidates.svelte b/plugins/recruit-resources/src/components/CreateCandidates.svelte index eec8a8512d..f98aceffe2 100644 --- a/plugins/recruit-resources/src/components/CreateCandidates.svelte +++ b/plugins/recruit-resources/src/components/CreateCandidates.svelte @@ -27,6 +27,10 @@ let name: string = '' let description: string = '' + export function canClose(): boolean { + return name === '' + } + const client = getClient() function createCandidates() { @@ -47,7 +51,6 @@ > - diff --git a/plugins/recruit-resources/src/components/CreateVacancy.svelte b/plugins/recruit-resources/src/components/CreateVacancy.svelte index a7cea29f65..a023fe50b6 100644 --- a/plugins/recruit-resources/src/components/CreateVacancy.svelte +++ b/plugins/recruit-resources/src/components/CreateVacancy.svelte @@ -30,6 +30,10 @@ let name: string = '' let description: string = '' + export function canClose(): boolean { + return name === '' + } + const client = getClient() const colors = [