description of mongo mount

This commit is contained in:
mbecker20
2022-03-18 02:45:06 -07:00
parent e0b9869733
commit d8ae664ece
2 changed files with 7 additions and 12 deletions
+4 -7
View File
@@ -29,15 +29,12 @@ const FinalConfig = (p: {
</Text>
<Newline />
<Box flexDirection="column" borderColor="green" borderStyle="round">
<Text>
mongo url:{" "}
<Text color="green" bold>
{p.config.mongoURL}
</Text>
<Text color="green">
mongo url: <Text color="white">{p.config.mongoURL}</Text>
</Text>
<Text>
<Text color={p.config.useBuilds ? "green" : "red"}>
use builds:{" "}
<Text color={p.config.useBuilds ? "green" : "red"} bold>
<Text color="white">
{p.config.useBuilds ? "yes" : "no"}
</Text>
</Text>
+3 -5
View File
@@ -2,9 +2,7 @@ import { CommandLogError } from "@monitor/types";
import { Box, Newline, Text, useInput } from "ink";
import React, { Fragment, useState } from "react";
import { startMongo } from "../../helpers/mongo";
import { useBlinker } from "../../hooks";
import LabelledSelector from "../util/LabelledSelector";
import Selector from "../util/Selector";
import YesNo from "../util/YesNo";
const RESTART_MODES = ["no", "on-failure", "always", "unless-stopped"];
@@ -164,7 +162,7 @@ const SetupMongo = ({
)}
{stage === "volume" && volume === undefined && (
<LabelledSelector
label="use volume:"
label="mount data on local filesystem:"
items={["yes", "no"]}
onSelect={(use) => {
if (use === "yes") {
@@ -178,7 +176,7 @@ const SetupMongo = ({
)}
{(volume || volume === false) && (
<Text color="green">
volume:{" "}
{volume ? "mount folder: " : "mount: "}
<Text color="white">
{volume || "no"}
{stage === "volume" && blinker ? "|" : ""}
@@ -242,7 +240,7 @@ const SetupMongo = ({
)}
{stage === "finish" && result && !result.isError && (
<Text>
press{" "}
Success! Press{" "}
<Text color="green" bold>
enter
</Text>{" "}