users permission upd, logo, live alarms upd

This commit is contained in:
Ivan
2023-09-18 04:58:49 +03:00
parent 03c45787a8
commit 04f673fdbb
21 changed files with 285 additions and 56 deletions

View File

@ -54,6 +54,7 @@ var positionsOptions = {
ticks: {
stepSize: 10000,
},
beginAtZero: true,
},
x: {
grid: {

View File

@ -70,18 +70,21 @@ const createTable = () => {
// Добавляем кнопку удаления после каждого ряда
const trashCell = document.createElement("td");
trashCell.setAttribute("class", "optionsCell");
if (DeleteTransport) {
const trashButton = document.createElement("button");
trashButton.setAttribute("class", "trash");
trashButton.value = `delete-device-${device.id}`;
trashButton.id = `delete-device-${device.id}`;
trashCell.appendChild(trashButton);
}
if (EditTransport) {
const optionsButton = document.createElement("button");
optionsButton.setAttribute("class", "options");
optionsButton.setAttribute("onclick", `openForm("${device.id}")`);
optionsButton.value = `options-device-${device.id}`;
optionsButton.id = `options-device-${device.id}`;
trashCell.appendChild(optionsButton);
trashCell.appendChild(trashButton);
}
row.appendChild(trashCell);
tbody.appendChild(row);