GNOME Bugzilla – Bug 760255
We do not want to be able to edit contacts
Last modified: 2016-01-10 18:25:17 UTC
Right now we get the edit-button and edit possibility when looking at a mapBubble of a contact. This should not happen. This should probably be fixed in src/placeBubble.js
How do I check if bubble is a bubble for a contact?
(In reply to Karanbir Chahal from comment #1) > How do I check if bubble is a bubble for a contact? That is the task. Please study the code to find out. Look for other places were we check if a place is a contsct.
Created attachment 318650 [details] [review] osmEdit: Disable editing for contacts Don't show the edit button on contact place marker bubbles
Review of attachment 318650 [details] [review]: Thanks! ::: src/placeBubble.js @@ +92,3 @@ + } else { + this._initEditButton(this._editButton); + } No need for braces in these.
Created attachment 318664 [details] [review] osmEdit: Disable editing for contacts Don't show the edit button on contact place marker bubbles
Is there a way to have the edit button on contacts open GNOME Contacts focused on that contact?
(In reply to Hashem Nasarat from comment #7) > Is there a way to have the edit button on contacts open GNOME Contacts > focused on that contact? That is a nice idea. It depends on if Contacts define any suitable GAction that we can call via DBus. See how do for weather and clocks in sendToDialog for example. We could add such an action if it does not exist. But I think I will push this patch for now. Hashem: Feel free to file a bug, but maybe more general? => A way to open contact in Contacts from placeBubble? And your suggestion here can be a sugestion in that bug? Or maybe we add contacts to sendToDialog if it is a ContactPlace, not sure.
Review of attachment 318664 [details] [review]: Looks great! Thanks Alex!
Attachment 318664 [details] pushed as bf66c74 - osmEdit: Disable editing for contacts