frontend: show state when using Stack files-on-host

This commit is contained in:
mbecker20
2024-08-18 21:16:53 -04:00
parent 39b217687d
commit 610a10c488

View File

@@ -135,7 +135,7 @@ export const StackComponents: RequiredResourceComponents = {
State: ({ id }) => {
const state = useStack(id)?.info.state ?? Types.StackState.Unknown;
const config = useFullStack(id)?.config;
if (!config?.file_contents && !config?.repo) {
if (!config?.files_on_host && !config?.file_contents && !config?.repo) {
return null;
}
return <StatusBadge text={state} intent={stack_state_intention(state)} />;