Skip to content

Commit

Permalink
Hide sharing tab from viewer in on-premises (#16299)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Moreno committed Jun 8, 2021
1 parent c726681 commit a40a5b7
Show file tree
Hide file tree
Showing 4 changed files with 593 additions and 579 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Development
* Bump cartodb-common to v1.1.2

### Bug fixes / enhancements
- Hide sharing tab from viewer in on-premises [#16299](https://github.com/CartoDB/cartodb/pull/16299)
- Remove all references to Spatial Data Catalog and Kepler GL maps in on-premises [#16293](https://github.com/CartoDB/cartodb/pull/16293)
- Guard code for vizjson users [#16267](https://github.com/CartoDB/cartodb/pull/16267)
- Guard code for Users and Visualizations [#16265](https://github.com/CartoDB/cartodb/pull/16265)
Expand Down
6 changes: 4 additions & 2 deletions lib/assets/javascripts/new-dashboard/pages/TilesetsViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export default {
region: state => state.config.region
}),
...mapGetters({
bqConnection: 'connectors/getBigqueryConnection'
bqConnection: 'connectors/getBigqueryConnection',
isOnPremise: 'config/isOnPremise'
}),
source () {
return 'bigquery';
Expand Down Expand Up @@ -73,7 +74,8 @@ export default {
shareOptions: {
baseUrl: `${this.base_url.replace(/\/(u|user)\/.*/, '')}/viewer`,
privacy: tileset.privacy,
setPrivacy: this.setPrivacy
setPrivacy: this.setPrivacy,
hide: this.isOnPremise
}
};
init(element, this.props);
Expand Down
Loading

0 comments on commit a40a5b7

Please sign in to comment.