-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CARTO provider for cloud storage #985
Conversation
Signed-off-by: Raúl Yeguas <[email protected]>
Signed-off-by: Raúl Yeguas <[email protected]>
Signed-off-by: Raúl Yeguas <[email protected]>
Signed-off-by: Raúl Yeguas <[email protected]>
Signed-off-by: Raúl Yeguas <[email protected]>
|
||
render() { | ||
return ( | ||
<Icons.IconWrapper {...this.props} viewBox={'0 0 92 36'}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IconWrapper
should pass viewBox from props, viewBox={'0 0 92 36'}
shouldn't be needed here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
Signed-off-by: Raúl Yeguas <[email protected]>
|
||
this._carto.setClientID(clientId); | ||
|
||
if (this.getAccessToken()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be !this.getAccessToken()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 This is not needed anymore, I deleted it
return this.clientId !== null; | ||
} | ||
|
||
isConnected() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think isConnected
is used anymore. in the UI we always call const isConnected = Boolean(cloudProvider.getAccessToken()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* The CARTO cloud provider sets by the default the privacity to public | ||
* @param {*} metadata | ||
*/ | ||
shareFile(metadata) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this method is private to dropbox, it is not called by UI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
} | ||
} | ||
|
||
getMapPermalink(mapLink, fullURL = true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no longer called by UI, can make it private
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Not needed anymore, deleted
: `/${mapLink}`; | ||
} | ||
|
||
getMapPermalinkFromParams({mapId, owner, privateMap}, fullURL = true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no longer called by UI, can make it private
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Signed-off-by: Raúl Yeguas <[email protected]>
This feature allows loading/saving private and public maps using CARTO.
Related to #804