Skip to content

Commit

Permalink
Btn-Filter Hidden in admin page
Browse files Browse the repository at this point in the history
  • Loading branch information
rezozero59 committed Aug 29, 2023
1 parent e23deae commit 1031134
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
2 changes: 2 additions & 0 deletions FrontEnd/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ a {

top: 0;
width: 100%;

display: flex;
justify-content: center;
align-items: center;
Expand Down Expand Up @@ -306,6 +307,7 @@ footer nav ul {
}

.projets {
margin-top: 60px;
width: 100%;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
Expand Down
3 changes: 3 additions & 0 deletions FrontEnd/login2.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,13 @@ function checkTokenLogin() {
const tokenAuth = localStorage.getItem("token");
const loginLink = document.getElementById("login-link");
const adminBar = document.getElementById("admin-bar");
const allFilterBtn = document.querySelector(".filtres");
console.log(allFilterBtn);

if (tokenAuth) {
loginLink.textContent = "logout";
adminBar.classList.remove("hidden");
allFilterBtn.classList.remove("filtres");
} else {
loginLink.textContent = "login";
adminBar.classList.add("hidden");
Expand Down

0 comments on commit 1031134

Please sign in to comment.