mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-06-20 10:37:54 +02:00
Add Task window
This commit is contained in:
@ -18,6 +18,34 @@ const slideOutRightTiming = {
|
||||
easing: "ease-in"
|
||||
}
|
||||
|
||||
|
||||
const taskTypesSelect = document.querySelector("#taskTypes")
|
||||
let availableTaskTypes;
|
||||
GetTaskTypes()
|
||||
.then(json => availableTaskTypes = json)
|
||||
.then(json =>
|
||||
json.forEach(taskType => {
|
||||
var option = document.createElement('option');
|
||||
option.value = taskType;
|
||||
option.innerText = taskType;
|
||||
taskTypesSelect.appendChild(option);
|
||||
}));
|
||||
|
||||
const connectorSelect = document.querySelector("#connectors");
|
||||
let availableConnectors;
|
||||
GetAvailableControllers()
|
||||
.then(json => availableConnectors = json)
|
||||
.then(json => console.log(json));
|
||||
/*.then(json =>
|
||||
json.forEach(connector => {
|
||||
var option = document.createElement('option');
|
||||
option.value = connector.name;
|
||||
option.innerText = connector.name;
|
||||
taskTypesSelect.appendChild(option);
|
||||
}));*/
|
||||
|
||||
|
||||
|
||||
const settingsTab = document.querySelector("#settingstab");
|
||||
const settingsCog = document.querySelector("#settingscog");
|
||||
var slideIn = true;
|
||||
@ -29,4 +57,12 @@ function slide(){
|
||||
slideIn = !slideIn;
|
||||
}
|
||||
|
||||
settingsCog.addEventListener("click", () => slide());
|
||||
settingsCog.addEventListener("click", () => slide());
|
||||
|
||||
const addTask = document.querySelector("addPublication");
|
||||
|
||||
setInterval(() => {
|
||||
GetTasks().then(json => {
|
||||
//TODO
|
||||
});
|
||||
}, 1000);
|
Reference in New Issue
Block a user