Skip to content

Commit

Permalink
Merge pull request #271 from statisticsnorway/feature/dpmeta-117-add-…
Browse files Browse the repository at this point in the history
…readonly-component

Using read-only input component on dataset tab
  • Loading branch information
JanhSander authored Apr 9, 2024
2 parents 1606204 + 9b2fe5c commit e37680d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ beautifulsoup4 = ">=4.12.3"
cloudpathlib = { extras = ["gs"], version = ">=0.17.0" }
pyjwt = ">=2.8.0"
ssb-klass-python = ">=0.0.9"
ssb-dash-components = ">=0.5.2"
ssb-dash-components = "0.6.0"

[tool.poetry.group.dev.dependencies]
mypy = ">=0.950"
Expand Down
2 changes: 1 addition & 1 deletion src/datadoc/frontend/components/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
naming_convention_warning = build_ssb_alert(
AlertTypes.WARNING,
"opened-dataset_warning",
"Filen følger ikke navnestandard. Vennlist se",
"Filen følger ikke navnestandard. Vennligst se",
"opened-dataset-warning-explanation",
link=get_dapla_manual_naming_standard_url(),
)
2 changes: 1 addition & 1 deletion src/datadoc/frontend/fields/display_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def render(
id=component_id,
debounce=True,
type=self.type,
disabled=not self.editable,
readOnly=not self.editable,
value=value,
className="input-component",
)
Expand Down

0 comments on commit e37680d

Please sign in to comment.