@@ -48,9 +48,10 @@ interface Props {
48
48
49
49
type EditState = "edit" | "view" | "saving" ;
50
50
51
- export const NewProjectCreator : React . FC < Props > = ( props : Props ) => {
52
- const { start_in_edit_mode, default_value } = props ;
53
-
51
+ export const NewProjectCreator : React . FC < Props > = ( {
52
+ start_in_edit_mode,
53
+ default_value,
54
+ } : Props ) => {
54
55
const managed_licenses = useTypedRedux ( "billing" , "managed_licenses" ) ;
55
56
56
57
// view --> edit --> saving --> view
@@ -79,6 +80,8 @@ export const NewProjectCreator: React.FC<Props> = (props: Props) => {
79
80
[ customize_kucalc ] ,
80
81
) ;
81
82
83
+ //const requireLicense = customize_kucalc == KUCALC_COCALC_COM;
84
+
82
85
const [ form ] = Form . useForm ( ) ;
83
86
84
87
useEffect ( ( ) => {
@@ -227,7 +230,7 @@ export const NewProjectCreator: React.FC<Props> = (props: Props) => {
227
230
function create_disabled ( ) {
228
231
return (
229
232
// no name of new project
230
- title_text === "" ||
233
+ ! title_text ?. trim ( ) ||
231
234
// currently saving (?)
232
235
state === "saving" ||
233
236
// user wants a non-default image, but hasn't selected one yet
@@ -381,36 +384,48 @@ export const NewProjectCreator: React.FC<Props> = (props: Props) => {
381
384
/>
382
385
</ Form . Item >
383
386
</ Form >
387
+ < div style = { { color : COLORS . GRAY , float : "right" } } >
388
+ You can change the title at any time.
389
+ </ div >
384
390
</ Col >
385
391
< Col sm = { 12 } >
386
392
< div style = { { color : COLORS . GRAY , marginLeft : "30px" } } >
387
- A < A href = "https://doc.cocalc.com/project.html" > project</ A > is an
388
- isolated private computational workspace that you can share with
389
- others. You can easily change the project's title at any time in
390
- project settings.
393
+ A < A href = "https://doc.cocalc.com/project.html" > project</ A > is a
394
+ private computational workspace that you can use with
395
+ collaborators that you explicitly invite. You can attach powerful{ " " }
396
+ < A href = "https://doc.cocalc.com/compute_server.html" >
397
+ GPUs, CPUs
398
+ </ A > { " " }
399
+ and{ " " }
400
+ < A href = "https://doc.cocalc.com/cloud_file_system.html" >
401
+ storage
402
+ </ A > { " " }
403
+ to a project.
391
404
</ div >
392
405
</ Col >
393
406
</ Row >
394
- { render_advanced_toggle ( ) }
395
- { render_advanced ( ) }
396
407
{ render_add_license_toggle ( ) }
397
408
{ render_add_license ( ) }
398
409
{ render_license ( ) }
410
+ { render_advanced_toggle ( ) }
411
+ { render_advanced ( ) }
399
412
< Row >
400
413
< Col sm = { 24 } style = { { marginTop : "10px" } } >
401
- < Button . Group >
402
- < Button disabled = { state === "saving" } onClick = { cancel_editing } >
403
- Cancel
404
- </ Button >
405
- < Button
406
- disabled = { create_disabled ( ) }
407
- onClick = { ( ) => create_project ( ) }
408
- type = "primary"
409
- >
410
- Create Project
411
- { create_disabled ( ) ? " (enter a title above!)" : "" }
412
- </ Button >
413
- </ Button . Group >
414
+ < Button
415
+ disabled = { state === "saving" }
416
+ onClick = { cancel_editing }
417
+ style = { { marginRight : "8px" } }
418
+ >
419
+ Cancel
420
+ </ Button >
421
+ < Button
422
+ disabled = { create_disabled ( ) }
423
+ onClick = { ( ) => create_project ( ) }
424
+ type = "primary"
425
+ >
426
+ Create Project
427
+ { create_disabled ( ) ? " (enter a title above!)" : "" }
428
+ </ Button >
414
429
</ Col >
415
430
</ Row >
416
431
< Row >
0 commit comments