Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quick links missing #8

Closed
prosolucoes opened this issue Sep 20, 2017 · 7 comments · Fixed by #13
Closed

quick links missing #8

prosolucoes opened this issue Sep 20, 2017 · 7 comments · Fixed by #13

Comments

@prosolucoes
Copy link

I've installed quick links and it worked fine for a few days.
Now it's missing from gmail.

I've already uninstalled and reinstalled but still missing.
Any suggestion?

Thanks
Paulo Soares

@kevinwucodes
Copy link
Owner

Quick Links should show up directly underneath your last label on the left hand-side navigation. Sometimes you'll see a "label" called "More" with an arrow pointing down. It should show up directly underneath that.

@prosolucoes
Copy link
Author

It should be there was it was in the beginning, but now it's missing.
Thanks for your time!

screenclip

@kevinwucodes
Copy link
Owner

Lets makes sure the extension is fully loaded. When you open up your console, do you see a message that says "Loaded Gmail Quick Links" ?

To get to the console in Chrome, go to View -> Developer -> JavaScript Console

@prosolucoes
Copy link
Author

Yes, the message shows up in console. These are the details in index.js:

import React, { Component } from 'react'
import { render } from 'react-dom'

import AppContainer from './AppContainer'

import { getGmailLocationToInject } from './config'

const beginReact = accountName => {
  render(
    <AppContainer accountName={accountName}/>,
    document.getElementById('gmailQuickLinksContainer')
  )
}

// there are cases where the gmail left nav panel isn't loaded yet,
// so we need to check for it until it exists before we can proceed
const checkDomElementExist = setInterval(() => {
  if (getGmailLocationToInject()) {
    clearInterval(checkDomElementExist)

    // create a div for our react container to be injected
    const gmailQuickLinksContainer = document.createElement('div')
    gmailQuickLinksContainer.id = "gmailQuickLinksContainer"
    getGmailLocationToInject().append(gmailQuickLinksContainer)

    console.log('Loaded Gmail Quick Links')

    //TODO: what is the person isn't signed in?  Does this crash extension?
    const currentAccountName = document
      .querySelectorAll('a[title^="Google Account"]')[0]
      .title
      .match(/\(([^)]+)\)/)[1]

    //load react
    beginReact(currentAccountName)
  }
}, 200)

// WEBPACK FOOTER //
// ./src/index.js

@kevinwucodes
Copy link
Owner

ok, so it does look like the extension is loaded and working. Maybe the quick links is hidden somehow because you might have some other extensions or some other Gmail Labs turned on?

For the sake of diagnostics, can you try disabling any other Gmail Labs that might be running to see if this lets you see the Quick Links div box?

Also, try doing this in the console

document.getElementById('gmailQuickLinksContainer')

If you get "null" returned, something is wrong. But if you get something like <div id="gmailQuickLinksContainer">...</div> and then try to mouse hover over that, Chrome should try and reveal where that div is actually located in Gmail.

@kevinwucodes
Copy link
Owner

Fixed in #13

@prosolucoes
Copy link
Author

Kevin, first of all, thanks, it's working fine again.

Sorry for the delay, but somehow this email thread was deleted, and don't get to my attention.

Today, after a Gmail refresh, it all come back as expected.

Once again, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants