diff --git a/app/src/api.js b/app/src/api.js index 1ccf5275..e46553da 100644 --- a/app/src/api.js +++ b/app/src/api.js @@ -2226,8 +2226,10 @@ export async function checkUpgrade(force = false) { return null; } -export async function triggerUpgrade() { - const response = await apiPost(`${API_URI}/upgrade/start`); +// `branch` upgrades from that branch; without it the current branch is upgraded. +export async function triggerUpgrade(branch = null) { + const body = branch ? {branch} : undefined; + const response = await apiPost(`${API_URI}/upgrade/start`, body); if (!response.ok) { const message = await getErrorMessage(response, 'Failed to start upgrade. See server logs.'); toast({ diff --git a/app/src/components/ThemeSamplePage.js b/app/src/components/ThemeSamplePage.js index eb820788..4ff54967 100644 --- a/app/src/components/ThemeSamplePage.js +++ b/app/src/components/ThemeSamplePage.js @@ -2,6 +2,7 @@ import React, {useContext, useState} from 'react'; import {ThemeContext} from '../contexts/contexts'; import { ActionInput, + Autocomplete, Button, Card, CardGroup, @@ -789,7 +790,11 @@ export function ThemeSamplePage() { -
+
+ {/* A dropdown that also takes a typed value; open it to check the dropdown. */} + options}/>