fixed alex
This commit is contained in:
parent
23c39cbae2
commit
2d59388494
2 changed files with 10 additions and 9 deletions
|
@ -13,7 +13,7 @@ import { FormBuilder } from "../../../core/ui/form_builder/form_builder";
|
||||||
import { match } from "ts-pattern";
|
import { match } from "ts-pattern";
|
||||||
import { TemplateModelCard } from "./ui/template_model_card";
|
import { TemplateModelCard } from "./ui/template_model_card";
|
||||||
import { Icon } from "../../../core/ui/icons/icons";
|
import { Icon } from "../../../core/ui/icons/icons";
|
||||||
import { useStore } from "../../../core/helper/use_store";
|
import { useStore } from "../../../core/helper/use_store";
|
||||||
import { FormBuilderValidationModel } from "../../../core/model/form_builder_validation_model";
|
import { FormBuilderValidationModel } from "../../../core/model/form_builder_validation_model";
|
||||||
import { InputV2 } from "../../../core/ui/input/input_v2";
|
import { InputV2 } from "../../../core/ui/input/input_v2";
|
||||||
|
|
||||||
|
|
|
@ -62,17 +62,18 @@ export const getModelCard = (
|
||||||
|
|
||||||
<Icon
|
<Icon
|
||||||
type="Log"
|
type="Log"
|
||||||
onClick={async () => {
|
onClick={async () =>
|
||||||
await navigator.clipboard.writeText(calculationModel.lastProcessLogs ?? "");
|
window.prompt("Copy to clipboard: Ctrl+C, Enter", calculationModel.lastProcessLogs ?? "Not found logs")
|
||||||
message.success("логи последнего запуска добавлены в буфер!");
|
}
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
<Icon
|
<Icon
|
||||||
type="Command"
|
type="Command"
|
||||||
onClick={async () => {
|
onClick={async () =>
|
||||||
await navigator.clipboard.writeText(calculationModel.lastProcessExecCommand ?? "");
|
window.prompt(
|
||||||
message.success("последняя команда запуска добавлена в буфер!");
|
"Copy to clipboard: Ctrl+C, Enter",
|
||||||
}}
|
calculationModel.lastProcessExecCommand ?? "Not last process command logs"
|
||||||
|
)
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<CoreText text={calculationModel.type} type={CoreTextType.small} />
|
<CoreText text={calculationModel.type} type={CoreTextType.small} />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue