Spaces:
Running
Running
Remove Hugging Face profile from account menu
Browse files- space-auth.js +1 -10
space-auth.js
CHANGED
|
@@ -190,15 +190,6 @@ function makeLoggedInControl(user) {
|
|
| 190 |
"write_article"
|
| 191 |
);
|
| 192 |
|
| 193 |
-
const profile = document.createElement("a");
|
| 194 |
-
profile.className = "hfnx-auth__item";
|
| 195 |
-
profile.href = user.profile;
|
| 196 |
-
profile.target = "_blank";
|
| 197 |
-
profile.rel = "noopener";
|
| 198 |
-
profile.textContent = "Hugging Face profile";
|
| 199 |
-
profile.setAttribute("role", "menuitem");
|
| 200 |
-
profile.addEventListener("click", () => trackAuthEvent("space_hf_profile_opened"));
|
| 201 |
-
|
| 202 |
const logout = document.createElement("button");
|
| 203 |
logout.type = "button";
|
| 204 |
logout.className = "hfnx-auth__item";
|
|
@@ -226,7 +217,7 @@ function makeLoggedInControl(user) {
|
|
| 226 |
});
|
| 227 |
document.addEventListener("click", () => setOpen(false));
|
| 228 |
|
| 229 |
-
menu.append(myModels, bookmarks, releaseWatchlist, writeArticle,
|
| 230 |
wrap.append(chip, menu);
|
| 231 |
return wrap;
|
| 232 |
}
|
|
|
|
| 190 |
"write_article"
|
| 191 |
);
|
| 192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 193 |
const logout = document.createElement("button");
|
| 194 |
logout.type = "button";
|
| 195 |
logout.className = "hfnx-auth__item";
|
|
|
|
| 217 |
});
|
| 218 |
document.addEventListener("click", () => setOpen(false));
|
| 219 |
|
| 220 |
+
menu.append(myModels, bookmarks, releaseWatchlist, writeArticle, logout);
|
| 221 |
wrap.append(chip, menu);
|
| 222 |
return wrap;
|
| 223 |
}
|