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 { TemplateModelCard } from "./ui/template_model_card";
|
||||
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 { InputV2 } from "../../../core/ui/input/input_v2";
|
||||
|
||||
|
|
|
@ -62,17 +62,18 @@ export const getModelCard = (
|
|||
|
||||
<Icon
|
||||
type="Log"
|
||||
onClick={async () => {
|
||||
await navigator.clipboard.writeText(calculationModel.lastProcessLogs ?? "");
|
||||
message.success("логи последнего запуска добавлены в буфер!");
|
||||
}}
|
||||
onClick={async () =>
|
||||
window.prompt("Copy to clipboard: Ctrl+C, Enter", calculationModel.lastProcessLogs ?? "Not found logs")
|
||||
}
|
||||
/>
|
||||
<Icon
|
||||
type="Command"
|
||||
onClick={async () => {
|
||||
await navigator.clipboard.writeText(calculationModel.lastProcessExecCommand ?? "");
|
||||
message.success("последняя команда запуска добавлена в буфер!");
|
||||
}}
|
||||
onClick={async () =>
|
||||
window.prompt(
|
||||
"Copy to clipboard: Ctrl+C, Enter",
|
||||
calculationModel.lastProcessExecCommand ?? "Not last process command logs"
|
||||
)
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
<CoreText text={calculationModel.type} type={CoreTextType.small} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue