Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ the release.
* [chore] Upgrade OpenFeature and add fix deprecation warnings for dependency
injection
([#2644](https://github.com/open-telemetry/opentelemetry-demo/pull/2644))
* [chore] Fix flagd-ui span error
([#2615](https://github.com/open-telemetry/opentelemetry-demo/pull/2677))

## 2.1.3

Expand Down
3 changes: 2 additions & 1 deletion src/flagd-ui/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import topbar from "../vendor/topbar"

const csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content")
const rootPath = document.querySelector("meta[name='root-path']").getAttribute("content")
const liveSocket = new LiveSocket(rootPath === '/' ? '/live' : `${rootPath}live`, Socket, {
const livePath = rootPath === '/' ? '/live' : `${rootPath}/live`
const liveSocket = new LiveSocket(livePath, Socket, {
longPollFallbackMs: 2500,
params: {_csrf_token: csrfToken}
})
Expand Down
12 changes: 6 additions & 6 deletions src/flagd-ui/lib/flagd_ui_web/components/navbar.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ defmodule FlagdUiWeb.Components.Navbar do
~H"""
<nav class="bg-gray-800 p-4 sm:p-6">
<div class="container mx-auto flex items-center justify-between">
<a href="/feature" class="text-xl font-bold text-white">
<.link navigate={~p"/"} class="text-xl font-bold text-white">
Flagd Configurator
</a>
</.link>
<ul class="flex space-x-2 sm:space-x-4">
<li>
<a href="/feature" class={classes("basic", @mode)}>
<.link navigate={~p"/"} class={classes("basic", @mode)}>
Basic
</a>
</.link>
</li>
<li>
<a href="/feature/advanced" class={classes("advanced", @mode)}>
<.link navigate={~p"/advanced"} class={classes("advanced", @mode)}>
Advanced
</a>
</.link>
</li>
</ul>
</div>
Expand Down
Loading