feat: крупная кнопка закрытия отказа и неисправности; полная форма закрытия в приложении Android (как на сайте); «инцидент» → «отказ»; Android 1.10.0, руководство
This commit is contained in:
@@ -320,7 +320,7 @@ function incidentCard(i, onchange) {
|
||||
i.status === "closed" && !f && isEng() ? h("div", { class: "row", style: "margin-top:6px" },
|
||||
h("button", { class: "sec sm", onclick: guard(() => failureForm(i, fbox, onchange, "edit")) }, "✎ Данные отказа")) : null,
|
||||
i.status === "open" ? h("div", { class: "row", style: "margin-top:8px" },
|
||||
canClose ? h("button", { class: "sec sm", onclick: guard(() => failureForm(i, fbox, onchange, "close")) }, f ? "✔ Неисправность устранена" : "✔ Закрыть отказ") : null,
|
||||
canClose ? h("button", { class: "closebtn", onclick: guard(() => failureForm(i, fbox, onchange, "close")) }, f ? "✔ Неисправность устранена" : "✔ Закрыть отказ") : null,
|
||||
f ? h("button", { class: "bad sm", title: "Неисправность привела к остановке оборудования", onclick: guard(async () => {
|
||||
const note = prompt("Оборудование остановлено? Перевести сообщение в отказ (машина получит состояние «Отказ»). Что случилось:", ""); if (note === null) return;
|
||||
await api("POST", `/incidents/${i.id}/escalate`, { note }); toast("Переведено в отказ"); onchange();
|
||||
|
||||
Reference in New Issue
Block a user