diff --git a/CHANGELOG.md b/CHANGELOG.md index 914f338f1..3099df8fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +- [#276](https://github.com/os2display/display-admin-client/pull/276) + - Added Colibo feed type form. + - Fixed feed type selector when unsupported type. - [#273](https://github.com/os2display/display-admin-client/pull/273) - Fixed calendar api feed source config endpoint. - [#272](https://github.com/os2display/display-admin-client/pull/272) diff --git a/src/components/feed-sources/feed-source-form.jsx b/src/components/feed-sources/feed-source-form.jsx index 2cce65aed..6575b6430 100644 --- a/src/components/feed-sources/feed-source-form.jsx +++ b/src/components/feed-sources/feed-source-form.jsx @@ -1,5 +1,5 @@ import { React } from "react"; -import { Button } from "react-bootstrap"; +import { Alert, Button } from "react-bootstrap"; import { useTranslation } from "react-i18next"; import { useNavigate } from "react-router-dom"; import PropTypes from "prop-types"; @@ -13,6 +13,7 @@ import FormInput from "../util/forms/form-input"; import CalendarApiFeedType from "./templates/calendar-api-feed-type"; import NotifiedFeedType from "./templates/notified-feed-type"; import EventDatabaseApiFeedType from "./templates/event-database-feed-type"; +import ColiboFeedType from "./templates/colibo-feed-type"; /** * The feed-source form component. @@ -47,6 +48,10 @@ function FeedSourceForm({ const { t } = useTranslation("common", { keyPrefix: "feed-source-form" }); const navigate = useNavigate(); + const typeInOptions = + !feedSource?.feedType || + feedSourceTypeOptions.find((el) => el.value === feedSource.feedType); + return ( <>