@@ -9,7 +9,12 @@ import {
99} from '@jupyter/react-components' ;
1010import { useState } from 'react' ;
1111import { IDriveInfo } from '../token' ;
12- import { getDrivesList , getExcludedDrives , includeDrive } from '../requests' ;
12+ import {
13+ addPublicDrive ,
14+ getDrivesList ,
15+ getExcludedDrives ,
16+ includeDrive
17+ } from '../requests' ;
1318import { ISignal , Signal } from '@lumino/signaling' ;
1419import { driveBrowserIcon } from '../icons' ;
1520
@@ -22,12 +27,20 @@ export interface IDriveInputProps {
2227 value : string ;
2328 getValue : ( event : any ) => void ;
2429}
30+
2531export function DriveInputComponent ( props : IDriveInputProps ) {
2632 return (
2733 < div >
2834 < div className = "add-public-drive-section" >
29- < Search className = "drive-search-input" onInput = { props . getValue } />
30- < Button className = "input-add-drive-button" onClick = { ( ) => { } } >
35+ < Search
36+ className = "drive-search-input"
37+ onInput = { props . getValue }
38+ placeholder = "Enter drive name"
39+ />
40+ < Button
41+ className = "input-add-drive-button"
42+ onClick = { ( ) => addPublicDrive ( props . value ) }
43+ >
3144 add
3245 </ Button >
3346 </ div >
@@ -168,7 +181,7 @@ export function DriveListManagerComponent({ model }: IProps) {
168181 </ div >
169182
170183 < div className = "drives-manager-section" >
171- < div > Enter public drive name </ div >
184+ < div className = "drives-section-title" > Add public drive</ div >
172185 < DriveInputComponent
173186 isName = { false }
174187 value = { driveUrl }
@@ -177,7 +190,7 @@ export function DriveListManagerComponent({ model }: IProps) {
177190 </ div >
178191
179192 < div className = "drives-manager-section" >
180- < div > Available drives </ div >
193+ < div className = "drives-section-title" > Browser available drives </ div >
181194 < DriveSearchListComponent
182195 isName = { true }
183196 value = { searchDrive }
0 commit comments