Skip to content
Snippets Groups Projects
Commit 3edd0b1e authored by danieldeng2's avatar danieldeng2
Browse files

Change card click logic

parent c6f6e1d4
No related branches found
No related tags found
No related merge requests found
......@@ -128,6 +128,11 @@ class QuickAccessView extends React.Component<QuickAccessProps, MyState> {
}
handleCardClick(id: number) {
if (this.isAnySelected()) {
this.handleIconClick(id);
return;
}
const onSuccess = (data: any) => {
// TODO: Try to navigate straight to the endpoint url instead of creating an object url
data.blob().then((blob: any) => {
......@@ -145,10 +150,6 @@ class QuickAccessView extends React.Component<QuickAccessProps, MyState> {
});
};
request(api.MATERIALS_RESOURCES_FILE(id), methods.GET, onSuccess, onFailure);
if (this.isAnySelected()) {
this.handleIconClick(id);
}
}
handleMouseOver(id: number) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment