@@ -74,7 +74,7 @@ export default function ProjectManageModal(props: ProjectManageModalProps): Reac
7474 const projects = await storage . listProjects ( ) ;
7575
7676 // Sort projects alphabetically by name
77- projects . sort ( ( a , b ) => a . userVisibleName . localeCompare ( b . userVisibleName ) ) ;
77+ projects . sort ( ( a , b ) => a . projectName . localeCompare ( b . projectName ) ) ;
7878 setAllProjects ( projects ) ;
7979
8080 if ( projects . length > 0 && props . noProjects ) {
@@ -186,25 +186,25 @@ export default function ProjectManageModal(props: ProjectManageModalProps): Reac
186186 /** Opens the rename modal for a specific project. */
187187 const openRenameModal = ( record : commonStorage . Project ) : void => {
188188 setCurrentRecord ( record ) ;
189- setName ( record . userVisibleName ) ;
189+ setName ( record . projectName ) ;
190190 setRenameModalOpen ( true ) ;
191191 } ;
192192
193193 /** Opens the copy modal for a specific project. */
194194 const openCopyModal = ( record : commonStorage . Project ) : void => {
195195 setCurrentRecord ( record ) ;
196- setName ( record . userVisibleName + COPY_SUFFIX ) ;
196+ setName ( record . projectName + COPY_SUFFIX ) ;
197197 setCopyModalOpen ( true ) ;
198198 } ;
199199
200200 /** Gets the rename modal title. */
201201 const getRenameModalTitle = ( ) : string => {
202- return `Rename Project: ${ currentRecord ? currentRecord . userVisibleName : '' } ` ;
202+ return `Rename Project: ${ currentRecord ? currentRecord . projectName : '' } ` ;
203203 } ;
204204
205205 /** Gets the copy modal title. */
206206 const getCopyModalTitle = ( ) : string => {
207- return `Copy Project: ${ currentRecord ? currentRecord . userVisibleName : '' } ` ;
207+ return `Copy Project: ${ currentRecord ? currentRecord . projectName : '' } ` ;
208208 } ;
209209
210210 /** Creates the container style object. */
@@ -224,8 +224,8 @@ export default function ProjectManageModal(props: ProjectManageModalProps): Reac
224224 const columns : Antd . TableProps < commonStorage . Project > [ 'columns' ] = [
225225 {
226226 title : 'Name' ,
227- dataIndex : 'userVisibleName ' ,
228- key : 'userVisibleName ' ,
227+ dataIndex : 'projectName ' ,
228+ key : 'projectName ' ,
229229 ellipsis : {
230230 showTitle : false ,
231231 } ,
@@ -268,7 +268,7 @@ export default function ProjectManageModal(props: ProjectManageModalProps): Reac
268268 { allProjects . length > 1 && (
269269 < Antd . Tooltip title = { t ( 'Delete' ) } >
270270 < Antd . Popconfirm
271- title = { `Delete ${ record . userVisibleName } ?` }
271+ title = { `Delete ${ record . projectName } ?` }
272272 description = "This action cannot be undone."
273273 onConfirm = { ( ) => handleDeleteProject ( record ) }
274274 okText = { t ( 'Delete' ) }
@@ -385,7 +385,7 @@ export default function ProjectManageModal(props: ProjectManageModalProps): Reac
385385 < Antd . Table < commonStorage . Project >
386386 columns = { columns }
387387 dataSource = { allProjects }
388- rowKey = "userVisibleName "
388+ rowKey = "projectName "
389389 size = "small"
390390 pagination = { allProjects . length > DEFAULT_PAGE_SIZE ? {
391391 pageSize : DEFAULT_PAGE_SIZE ,
0 commit comments