From 61bdbd682d2685c29d0a6a891ab29acc7ab4c699 Mon Sep 17 00:00:00 2001 From: cristianpela Date: Wed, 14 Apr 2021 14:23:05 +0300 Subject: [PATCH] #420 Info Badge After Activating A Repo. --- src/main/resources/public/js/getProject.js | 5 ++++- src/main/resources/templates/project.html | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/resources/public/js/getProject.js b/src/main/resources/public/js/getProject.js index 0c6f8a69..d4ac929f 100644 --- a/src/main/resources/public/js/getProject.js +++ b/src/main/resources/public/js/getProject.js @@ -41,7 +41,7 @@ function getProject() { }); } -function displayProject(userLogin, project) { +function displayProject(userLogin, project, pmInvitePending) { console.log(project); $(".managedByLink").html( $('') @@ -60,6 +60,9 @@ function displayProject(userLogin, project) { $(".project-owner-buttons").hide(); } $(".project-buttons").show(); + if(project.provider === "github" && pmInvitePending){ + $("#projectOverviewPmPending").show(); + } } /** diff --git a/src/main/resources/templates/project.html b/src/main/resources/templates/project.html index 6b543614..175113e6 100644 --- a/src/main/resources/templates/project.html +++ b/src/main/resources/templates/project.html @@ -42,6 +42,9 @@

/Project managed by:

+

The Project Manager takes care of the following things for you:

@@ -903,7 +906,7 @@

This repository is not active

data: form.serialize(), success: function (project) { $("#loadingProject").hide(); - displayProject(project.selfOwner, project); + displayProject(project.selfOwner, project, true); $(".badge-project-url").text( "https://self-xdsd.com/p/" + project.repoFullName + "?provider=" + project.provider