Skip to content

Commit

Permalink
Removed token before login, fixed dump submenu (adjustment), fixed ca…
Browse files Browse the repository at this point in the history
…se when empty models list displayed
  • Loading branch information
bsekachev committed Nov 27, 2019
1 parent abf7251 commit 0d92d33
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions cvat-core/src/server-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
`${encodeURIComponent('password')}=${encodeURIComponent(password)}`,
]).join('&').replace(/%20/g, '+');

Axios.defaults.headers.common.Authorization = '';
let authenticationResponse = null;
try {
authenticationResponse = await Axios.post(
Expand Down
11 changes: 7 additions & 4 deletions cvat-ui/src/components/models-page/models-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,18 @@ export default function ModelsPageComponent(props: Props) {
return (
<div className='cvat-models-page'>
<TopBarComponent installedAutoAnnotation={props.installedAutoAnnotation}/>
{ integratedModels.length ?
<BuiltModelsList models={integratedModels}/> : null }
{ uploadedModels.length &&
{ !!integratedModels.length &&
<BuiltModelsList models={integratedModels}/>
}
{ !!uploadedModels.length &&
<UploadedModelsList
registeredUsers={props.registeredUsers}
models={uploadedModels}
deleteModel={props.deleteModel}
/>
} { props.installedAutoAnnotation &&
}
{ props.installedAutoAnnotation &&
!uploadedModels.length &&
!props.installedTFAnnotation &&
!props.installedTFSegmentation &&
<EmptyListComponent/>
Expand Down
4 changes: 4 additions & 0 deletions cvat-ui/src/stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@
background-color: rgba(24,144,255,0.05);
}

.cvat-actions-menu-dump-submenu-item > button {
text-align: start;
}

.cvat-actions-menu-dump-submenu-item:hover {
background-color: rgba(24,144,255,0.05);
}
Expand Down

0 comments on commit 0d92d33

Please sign in to comment.