We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e386a8 commit 3e02eaaCopy full SHA for 3e02eaa
src/components/menu-bar/share-button.jsx
@@ -28,12 +28,12 @@ const getProjectUri = () => new Promise(resolve => {
28
const isUploadAvailable = async () => {
29
let res = null;
30
try {
31
- res = await fetch('http://localhost:8080/api/v1/ping');
+ res = await fetch('http://localhost:8080/api/v1/projects/canuploadprojects').then(res => res.json());
32
} catch {
33
// failed to fetch entirely
34
return false;
35
}
36
- return res.ok;
+ return res.canUpload;
37
};
38
39
class ShareButton extends React.Component {
0 commit comments