Skip to content

Commit

Permalink
fix(cloud link): show in cloud should use QRI_CLOUD_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
b5 committed Sep 3, 2019
1 parent 93e81df commit c72a75b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/components/Dataset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,11 @@ export default class Dataset extends React.Component<DatasetProps> {
if (username === workingDataset.peername) {
publishButton = published ? (
<HeaderColumnButtonDropdown
onClick={() => { shell.openExternal(`http://localhost:3000/${workingDataset.peername}/${workingDataset.name}`) }}
onClick={() => { shell.openExternal(`${QRI_CLOUD_URL}/${workingDataset.peername}/${workingDataset.name}`) }}
icon='faCloud'
label='View in Cloud'
items={[
<a key={0} onClick={(e) => { shell.openExternal(`http://localhost:3000/${workingDataset.peername}/${workingDataset.name}`); e.stopPropagation() }}>Copy Link</a>,
<a key={0} onClick={(e) => { shell.openExternal(`${QRI_CLOUD_URL}/${workingDataset.peername}/${workingDataset.name}`); e.stopPropagation() }}>Copy Link</a>,
<a key={1} onClick={this.publishUnpublishDataset}>Unpublish</a>
]}
/>
Expand Down
2 changes: 1 addition & 1 deletion app/utils/registry.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

export const QRI_CLOUD_URL = 'http://localhost:3000'
export const QRI_CLOUD_URL = 'https://qri.cloud'

0 comments on commit c72a75b

Please sign in to comment.