Skip to content
Snippets Groups Projects
Commit 3d563588 authored by Johan Kristiansson's avatar Johan Kristiansson
Browse files

removed alerts

parent 87f279f9
No related branches found
No related tags found
No related merge requests found
Pipeline #113198 passed
...@@ -187,16 +187,13 @@ async function checkInputFields(projectId: string, formId: string) { ...@@ -187,16 +187,13 @@ async function checkInputFields(projectId: string, formId: string) {
} }
function loadInitiateAndFinalizeBtn(projectId : string, completed : boolean) { function loadInitiateAndFinalizeBtn(projectId : string, completed : boolean) {
alert("hej");
if(!completed) { if(!completed) {
alert("not completed");
const nolanModelElement = document.getElementById("projectPageNolandsModel") as HTMLElement; const nolanModelElement = document.getElementById("projectPageNolandsModel") as HTMLElement;
//Creates buttons with classname, id, attribute and text //Creates buttons with classname, id, attribute and text
const finalizeButton = document.createElement("button"); const finalizeButton = document.createElement("button");
const iterationButton = document.createElement("button"); const iterationButton = document.createElement("button");
if (nolanModelElement) { if (nolanModelElement) {
alert("finds element");
finalizeButton.id = "toCurrentProjects"; finalizeButton.id = "toCurrentProjects";
iterationButton.id = "toCurrentProjects"; iterationButton.id = "toCurrentProjects";
finalizeButton.classList.add("btn", "btn-primary"); finalizeButton.classList.add("btn", "btn-primary");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment