Skip to content
This repository was archived by the owner on May 27, 2019. It is now read-only.

Use store path as hover title for store badge #247

Merged
merged 1 commit into from
Apr 3, 2018

Conversation

erayd
Copy link
Contributor

@erayd erayd commented Apr 3, 2018

When hovering over the store name badge in multi-store mode, display the path to that store.

scr-20180403-150730

var name = login;
var i;
if ((i = login.indexOf(":"))) {
if (searchSettings && searchSettings.customStores.length > 1) {
store = login.substr(0, i);
searchSettings.customStores.map(function(customStore) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unusual use of map 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops - that was a mistake. Intention was forEach. I think I must have been looking at map elsewhere, and typed it accidentally.

No real functional impact using it here though - so we can leave it as-is - but would you like me to change it for clarity?

Copy link
Contributor Author

@erayd erayd Apr 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or I guess I could have used a for (i in searchSettings.customStores) { loop too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll maybe change to forEach next time I need to do some changes in that file, as you said there is no functional impact anyway 😉

@maximbaz maximbaz merged commit 62232d8 into browserpass:master Apr 3, 2018
@erayd erayd deleted the store-hints branch April 4, 2018 00:43
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants