Commit 23393f0
authored
fix: only show Edit tab if editMetadataEnabled is true (#2136)
## Description
If editDatasetEnabled is true but editMetadataEnabled is false the Edit
tab still shows.
This PR fixes that.
## Changes:
- remove [hidden] attribute
- put both conditions in ngIf
## Tests included
- [ ] Included for each change/fix?
- [ ] Passing? (Merge will not be approved unless this is checked)
## Documentation
- [ ] swagger documentation updated \[required\]
- [ ] official documentation updated \[nice-to-have\]
### official documentation info
If you have updated the official documentation, please provide PR # and
URL of the pages where the updates are included
## Backend version
- [ ] Does it require a specific version of the backend
- which version of the backend is required:
## Summary by Sourcery
Bug Fixes:
- Prevent the Edit tab from being shown when metadata editing is
disabled in the application configuration.File tree
1 file changed
+1
-2
lines changed- src/app/datasets/dataset-detail/dataset-detail
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
402 | | - | |
| 401 | + | |
403 | 402 | | |
404 | 403 | | |
405 | 404 | | |
| |||
0 commit comments