Skip to content

Commit

Permalink
chore: hide experimental features
Browse files Browse the repository at this point in the history
  • Loading branch information
martastain committed Oct 20, 2024
1 parent b7e2506 commit e7e80cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions frontend/src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const App = () => {
.then((response) => {
setInitData(response.data)
nebula.settings = response.data.settings
nebula.experimental = response.data.experimental || false
nebula.plugins = response.data.frontend_plugins || []
nebula.scopedEndpoints = response.data.scoped_endpoints || []
nebula.user = response.data.user || {}
Expand Down
9 changes: 5 additions & 4 deletions frontend/src/containers/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,12 @@ const NavBar = () => {
<div className="left">
<Logo />
<NavLink to={`/mam/editor${mamSuffix}`}>Assets</NavLink>
{false && nebula.settings.system.ui_asset_preview && (
<NavLink to={`/mam/preview${mamSuffix}`}>Preview</NavLink>
{nebula.experimental && (
<>
<NavLink to={`/mam/scheduler`}>Scheduler</NavLink>
<NavLink to={`/mam/rundown`}>Rundown</NavLink>
</>
)}
<NavLink to={`/mam/scheduler`}>Scheduler</NavLink>
<NavLink to={`/mam/rundown`}>Rundown</NavLink>
<NavLink to="/jobs">Jobs</NavLink>
{!nebula.user.is_limited && (
<>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/nebula.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const nebula = {
language: 'en',
senderId: uuidv4(),
users: [],
experimental: false,

// API

Expand Down

0 comments on commit e7e80cf

Please sign in to comment.