RESOLVED FIXED 118970
[Web Inspector] When right-clicking on a DataGrid column, show editing menu option as "Edit <columnName>" instead of just "Edit"
https://bugs.webkit.org/show_bug.cgi?id=118970
Summary [Web Inspector] When right-clicking on a DataGrid column, show editing menu o...
Diego Pino
Reported 2013-07-22 07:36:38 PDT
Right click on a data column in a Grid shows up a context menu for Adding a new value, delete the current one or edit it. There's a FIXME comment suggesting to add the name of the column to be edited, for instance, "Edit 'Key'" instead of just simply "Edit", as it may be more clear what it does.
Attachments
Patch (3.30 KB, patch)
2013-07-22 07:46 PDT, Diego Pino
no flags
Patch (3.01 KB, patch)
2013-07-22 08:53 PDT, Diego Pino
no flags
Radar WebKit Bug Importer
Comment 1 2013-07-22 07:36:57 PDT
Diego Pino
Comment 2 2013-07-22 07:46:28 PDT
Antoine Quint
Comment 3 2013-07-22 07:52:58 PDT
Comment on attachment 207247 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=207247&action=review > Source/WebInspectorUI/UserInterface/DataGrid.js:1111 > + function getColumnIdentifier(node) { > + var element = node.enclosingNodeOrSelfWithNodeName("td"); > + return parseInt(element.className.match(/\b(\d+)-column\b/)[1], 10); > + } I think it's a little overkill to add this inline function which is only used once.
Timothy Hatcher
Comment 4 2013-07-22 08:00:17 PDT
Comment on attachment 207247 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=207247&action=review > Source/WebInspectorUI/ChangeLog:9 > + * Localizations/en.lproj/localizedStrings.js: Add literal "Edit '%s'" If you didn't, you should use the update-webkit-localized-strings script, which will update this file for you. > Source/WebInspectorUI/UserInterface/DataGrid.js:1128 > + contextMenu.appendItem(WebInspector.UIString("Edit '%s'").format(columnTitle), this._startEditing.bind(this, event.target)); This should use double curly quotes (“”) and not single quotes.
Diego Pino
Comment 5 2013-07-22 08:53:41 PDT
WebKit Commit Bot
Comment 6 2013-07-22 10:04:37 PDT
Comment on attachment 207251 [details] Patch Clearing flags on attachment: 207251 Committed r152979: <http://trac.webkit.org/changeset/152979>
WebKit Commit Bot
Comment 7 2013-07-22 10:04:40 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.