How to hide profile tab when not on your profile - bitbucket

Jón Atli November 24, 2015

I am currently developing an add-on for Bitbucket. 

I added a profile tab which I would like to be able to hide when on other users profile page but visible when on my profile page, I was wondering if this is at all possible.

The scopes and context I have is :

"scopes": ["account", "repository", "issue"],
"contexts": ["personal"]

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
evzijst November 24, 2015

You should instead change the context to make it an "account" add-on. "Personal" add-ons are designed to enhance your personal browsing experience by "following you around" the site, whereas "account" add-ons are anchored to the account they are installed on.

See: https://developer.atlassian.com/bitbucket/concepts/context-parameters.html

Jón Atli November 25, 2015

Is it possible then to specify the context as "account" only for the profile tab since we have other components in our add-on that need to have the context set as "personal" ? 

evzijst
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 25, 2015

No. The context applies to the add-on as a whole.

TAGS
AUG Leaders

Atlassian Community Events