diff --git a/browser/app/js/objects/ObjectItem.js b/browser/app/js/objects/ObjectItem.js
index 92db805d4..417f9a720 100644
--- a/browser/app/js/objects/ObjectItem.js
+++ b/browser/app/js/objects/ObjectItem.js
@@ -54,8 +54,11 @@ export const ObjectItem = ({
href={getDataType(name, contentType) === "folder" ? name : "#"}
onClick={e => {
e.preventDefault()
+ // onclick function is passed only when we have a prefix
if (onClick) {
onClick()
+ } else {
+ checked ? uncheckObject(name) : checkObject(name)
}
}}
>
diff --git a/browser/app/js/objects/__tests__/ObjectItem.test.js b/browser/app/js/objects/__tests__/ObjectItem.test.js
index c00d9eaa2..c55f946b2 100644
--- a/browser/app/js/objects/__tests__/ObjectItem.test.js
+++ b/browser/app/js/objects/__tests__/ObjectItem.test.js
@@ -30,7 +30,10 @@ describe("ObjectItem", () => {
it("shouldn't call onClick when the object isclicked", () => {
const onClick = jest.fn()
- const wrapper = shallow()
+ const checkObject = jest.fn()
+ const wrapper = shallow(
+
+ )
wrapper.find("a").simulate("click", { preventDefault: jest.fn() })
expect(onClick).not.toHaveBeenCalled()
})
@@ -57,9 +60,15 @@ describe("ObjectItem", () => {
})
it("should call uncheckObject when the object/prefix is unchecked", () => {
+ const checkObject = jest.fn()
const uncheckObject = jest.fn()
const wrapper = shallow(
-
+
)
wrapper.find("input[type='checkbox']").simulate("change")
expect(uncheckObject).toHaveBeenCalledWith("test")
diff --git a/browser/app/less/inc/list.less b/browser/app/less/inc/list.less
index 0f80f2b16..721863555 100644
--- a/browser/app/less/inc/list.less
+++ b/browser/app/less/inc/list.less
@@ -105,7 +105,7 @@ div.fesl-row {
.fesl-item-name {
a {
- cursor: default;
+ cursor: pointer;
}
}
@@ -114,12 +114,6 @@ div.fesl-row {
----------------------------*/
&[data-type=folder] {
.list-type(#a1d6dd, '\f07b');
-
- .fesl-item-name {
- a {
- cursor: pointer;
- }
- }
}
&[data-type=pdf] {.list-type(#fa7775, '\f1c1'); }
&[data-type=zip] { .list-type(#427089, '\f1c6'); }
diff --git a/browser/ui-assets.go b/browser/ui-assets.go
index b2abdcc3e..db17e3f31 100644
--- a/browser/ui-assets.go
+++ b/browser/ui-assets.go
@@ -6,7 +6,7 @@
// production/favicon-96x96.png
// production/firefox.png
// production/index.html
-// production/index_bundle-2020-06-09T22-29-49Z.js
+// production/index_bundle-2020-06-22T17-04-47Z.js
// production/loader.css
// production/logo.svg
// production/safari.png
@@ -14,6 +14,7 @@ package browser
import (
"fmt"
+ "github.com/elazarl/go-bindata-assetfs"
"io/ioutil"
"os"
"path/filepath"
@@ -48,7 +49,7 @@ func (fi bindataFileInfo) Mode() os.FileMode {
return fi.mode
}
-// Mode return file modify time
+// ModTime return file modify time
func (fi bindataFileInfo) ModTime() time.Time {
return fi.modTime
}
@@ -75,7 +76,7 @@ func productionChromePng() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/chrome.png", size: 3726, mode: os.FileMode(436), modTime: time.Unix(1591741808, 0)}
+ info := bindataFileInfo{name: "production/chrome.png", size: 3726, mode: os.FileMode(420), modTime: time.Unix(1592845501, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -92,7 +93,7 @@ func productionFavicon16x16Png() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/favicon-16x16.png", size: 14906, mode: os.FileMode(436), modTime: time.Unix(1591741808, 0)}
+ info := bindataFileInfo{name: "production/favicon-16x16.png", size: 14906, mode: os.FileMode(420), modTime: time.Unix(1592845501, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -109,7 +110,7 @@ func productionFavicon32x32Png() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/favicon-32x32.png", size: 16066, mode: os.FileMode(436), modTime: time.Unix(1591741808, 0)}
+ info := bindataFileInfo{name: "production/favicon-32x32.png", size: 16066, mode: os.FileMode(420), modTime: time.Unix(1592845501, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -126,7 +127,7 @@ func productionFavicon96x96Png() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/favicon-96x96.png", size: 17029, mode: os.FileMode(436), modTime: time.Unix(1591741808, 0)}
+ info := bindataFileInfo{name: "production/favicon-96x96.png", size: 17029, mode: os.FileMode(420), modTime: time.Unix(1592845501, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -143,7 +144,7 @@ func productionFirefoxPng() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/firefox.png", size: 4795, mode: os.FileMode(436), modTime: time.Unix(1591741808, 0)}
+ info := bindataFileInfo{name: "production/firefox.png", size: 4795, mode: os.FileMode(420), modTime: time.Unix(1592845501, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -203,8 +204,8 @@ var _productionIndexHTML = []byte(`
-
-
+
+