Skip to content

Commit

Permalink
DISPLAY-1019: Removed message
Browse files Browse the repository at this point in the history
  • Loading branch information
tuj committed Oct 13, 2023
1 parent 41fd488 commit 68a6c27
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
## [Unreleased]

- [#144](https://github.com/os2display/display-templates/pull/144)
- Fixed poster template to show message when not configured correctly.
- Fixed poster template issue when no feed is loaded.
- [#142](https://github.com/os2display/display-templates/pull/142)
- Update poster template to display url domain.

Expand Down
4 changes: 2 additions & 2 deletions build/poster-config-develop.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"id": "01FWJZQ25A1868V63CWYYHQFKQ",
"description": "Mulighed for at vise plakat indhold.",
"resources": {
"component": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/poster.js?ts=1697106142601",
"admin": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/poster-admin.json?ts=1697106142601",
"component": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/poster.js?ts=1697172577053",
"admin": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/poster-admin.json?ts=1697172577053",
"schema": "https://raw.githubusercontent.com/os2display/display-templates/develop/build/poster-schema.json",
"assets": [],
"options": {},
Expand Down
4 changes: 2 additions & 2 deletions build/poster-config-main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"id": "01FWJZQ25A1868V63CWYYHQFKQ",
"description": "Mulighed for at vise plakat indhold.",
"resources": {
"component": "https://raw.githubusercontent.com/os2display/display-templates/main/build/poster.js?ts=1697106142601",
"admin": "https://raw.githubusercontent.com/os2display/display-templates/main/build/poster-admin.json?ts=1697106142601",
"component": "https://raw.githubusercontent.com/os2display/display-templates/main/build/poster.js?ts=1697172577053",
"admin": "https://raw.githubusercontent.com/os2display/display-templates/main/build/poster-admin.json?ts=1697172577053",
"schema": "https://raw.githubusercontent.com/os2display/display-templates/main/build/poster-schema.json",
"assets": [],
"options": {},
Expand Down
2 changes: 1 addition & 1 deletion build/poster.js

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions src/poster/poster.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,6 @@ function Poster({ slide, content, run, slideDone, executionId }) {

return (
<>
{configuration?.posterType === "single" &&
!configuration?.singleSelectedOccurrence && (
<div style={{ color: "white", background: "black", margin: "1em" }}>
Der er ikke valgt en begivenhed eller en forekomst.
</div>
)}

{/* TODO: Adjust styling to variables from Theme */}
{currentEvent !== null && (
<IntlProvider messages={translations} locale="da" defaultLocale="da">
Expand Down Expand Up @@ -274,8 +267,6 @@ Poster.propTypes = {
overrideReadMoreUrl: PropTypes.string,
hideTime: PropTypes.bool,
readMoreText: PropTypes.string,
posterType: PropTypes.string,
singleSelectedOccurrence: PropTypes.string
}),
}),
feedData: PropTypes.arrayOf(
Expand Down

0 comments on commit 68a6c27

Please sign in to comment.