Closed jorgenevil closed 8 years ago
Yes, cool. This could work:
if (project.isEditor()) {
// logged in user is editor of project
}
@jorgenevil This number needs to be updated after adding more people to project. Best would be to use a listener.
We can close this issue afterwards.
@knutole @jorgenevil what does mean Give basic information on hover ? Is it mean that when i click on public project it should so something?
@IgorZiegler
Hover - means when you hold the mouspointer over an area (but not clicking)...
So "give basic info on hover" means simply when hovering over the cirle with (42)
(see image above), and tooltip message should pop up say, "The project is currently shared with 42 people."
For hovering, see how it's done with the other hover's in project list.
@IgorZiegler Nice.
I see you've added callbacks, etc... As mentioned above, the best way would be to do this with listeners. Meaning, that chrome.projects.js
listens for projectUpdated
(which you must fire after updating), and THEN it can update the list... We want to move towards implementing more event listeners, so it would be better to do it that was. (See top of chrome.js
for example of listeners.)