mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-15 12:55:59 +00:00
TSK-903: do not allow saving if set to private with no members (#2854)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
f78eccb6d0
commit
24a4fa3b29
@ -119,7 +119,7 @@
|
||||
label={isNew ? tracker.string.NewProject : tracker.string.EditProject}
|
||||
okLabel={isNew ? presentation.string.Create : presentation.string.Save}
|
||||
okAction={handleSave}
|
||||
canSave={name.length > 0 && !!selectedWorkDayType}
|
||||
canSave={name.length > 0 && !!selectedWorkDayType && !(members.length === 0 && isPrivate)}
|
||||
on:close={() => {
|
||||
dispatch('close')
|
||||
}}
|
||||
@ -153,6 +153,7 @@
|
||||
label={presentation.string.MakePrivate}
|
||||
description={presentation.string.MakePrivateDescription}
|
||||
bind:on={isPrivate}
|
||||
disabled={!isPrivate && members.length === 0}
|
||||
/>
|
||||
<div class="flex-between">
|
||||
<div class="caption">
|
||||
|
Loading…
Reference in New Issue
Block a user