Skip to content

Commit

Permalink
Show reload layer button only to those with permission (#6380)
Browse files Browse the repository at this point in the history
* Show reload layer button only to those with permission
  • Loading branch information
fm3 authored Aug 8, 2022
1 parent 7263187 commit fab493f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
- The Layers tab now displays an Add Skeleton Annotation Layer button with which volume-only annotations can be converted to hybrid annotations. [#6330](https://github.com/scalableminds/webknossos/pull/6330)
- The Zarr directory listings no longer include the current directory “.”. [6359](https://github.com/scalableminds/webknossos/pull/6359)
- The default name for volume annotation layers with fallback segmentations is now set to the name of their fallback segmentation layer, no longer “Volume”. [#6373](https://github.com/scalableminds/webknossos/pull/6373)
- The “reload data” button for dataset and annotation layers is now only shown to users who have administrative permissions for the dataset (because the button clears server caches and file handles). [#6380](https://github.com/scalableminds/webknossos/pull/6380)

### Fixed
- Fixed a regression where the mapping activation confirmation dialog was never shown. [#6346](https://github.com/scalableminds/webknossos/pull/6346)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ class DatasetSettings extends React.PureComponent<DatasetSettingsProps, State> {
};

getReloadDataButton = (layerName: string) => {
if (!this.props.dataset.isEditable) {
return null;
}
const tooltipText =
"Reload the data from the server. Use this when the data on the server changed.";
return (
Expand Down

0 comments on commit fab493f

Please sign in to comment.