From 176b5ff3e4a0f6d2a236beb29824c33571efedd8 Mon Sep 17 00:00:00 2001 From: Brandon Castillo Date: Wed, 22 May 2024 15:24:08 -0700 Subject: [PATCH] [MARKENG-3296] Added Sign In, My requests and Sign out link to secondary navbar --- manifest.json | 2 +- script.js | 4 ++-- templates/header.hbs | 31 ++++++++++++++++++++----------- 3 files changed, 23 insertions(+), 14 deletions(-) diff --git a/manifest.json b/manifest.json index 0dcb246..46b8367 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "post-zen", "author": "Brandon Castillo, Marketing Engineering, Postman.", - "version": "1.11.6", + "version": "1.12.0", "api_version": 2, "default_locale": "en-us", "settings": [ diff --git a/script.js b/script.js index 86c4e8b..bf929bd 100644 --- a/script.js +++ b/script.js @@ -716,11 +716,11 @@ function getCookie(cname) { return ""; } -(function addProfileLink() { +(function updateMyRequestsTitleOnLogin() { setTimeout(() => { let profile = document.getElementById("pm-signed-in"); const isSignedIn = getCookie("ajs_user_id"); - isSignedIn && profile ? profile.setAttribute("href", `/hc/en-us/profiles/${isSignedIn}`) : profile.setAttribute("href", `/hc/en-us/signin?return_to=https%3A%2F%2Fsupport.postman.com%2Fhc%2Fen-us&locale=en-us`) + isSignedIn && profile ? profile.setAttribute("title", "My Requests") : null; }, 1000) }()) diff --git a/templates/header.hbs b/templates/header.hbs index 33ec22a..5930d16 100644 --- a/templates/header.hbs +++ b/templates/header.hbs @@ -222,15 +222,16 @@
- Contact Sales - @@ -243,7 +244,7 @@