Skip to content
Snippets Groups Projects
Commit e56dc14a authored by narindra.rajohnso's avatar narindra.rajohnso
Browse files

fix close modal alert bug

parent 8cad032b
No related branches found
No related tags found
No related merge requests found
......@@ -201,8 +201,9 @@
<span class="text-sm font-medium"> Details </span>
</a>
<form action="/logout">
<form>
<button
routerLink="/login/sign-in"
type="submit"
class="flex w-full items-center gap-2 rounded-lg px-4 py-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700"
>
......
......@@ -63,13 +63,14 @@ export class ListQuestionsComponent implements OnInit, OnDestroy {
this.modalQuestion=false;
this.questionEdited=null;
this.alertDelete=false;
if(value !== "error"){
if(value !== "error" && value !== undefined){
this.alertSuccess=value;
this.addSuccess=true;
setTimeout(() => {
this.addSuccess = false;
}, 5000);
}else{
}
if(value === "error"){
this.errorOccured=true;
setTimeout(() => {
this.errorOccured = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment