mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-19 14:55:31 +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}
|
label={isNew ? tracker.string.NewProject : tracker.string.EditProject}
|
||||||
okLabel={isNew ? presentation.string.Create : presentation.string.Save}
|
okLabel={isNew ? presentation.string.Create : presentation.string.Save}
|
||||||
okAction={handleSave}
|
okAction={handleSave}
|
||||||
canSave={name.length > 0 && !!selectedWorkDayType}
|
canSave={name.length > 0 && !!selectedWorkDayType && !(members.length === 0 && isPrivate)}
|
||||||
on:close={() => {
|
on:close={() => {
|
||||||
dispatch('close')
|
dispatch('close')
|
||||||
}}
|
}}
|
||||||
@ -153,6 +153,7 @@
|
|||||||
label={presentation.string.MakePrivate}
|
label={presentation.string.MakePrivate}
|
||||||
description={presentation.string.MakePrivateDescription}
|
description={presentation.string.MakePrivateDescription}
|
||||||
bind:on={isPrivate}
|
bind:on={isPrivate}
|
||||||
|
disabled={!isPrivate && members.length === 0}
|
||||||
/>
|
/>
|
||||||
<div class="flex-between">
|
<div class="flex-between">
|
||||||
<div class="caption">
|
<div class="caption">
|
||||||
|
Loading…
Reference in New Issue
Block a user