Add comment

pull/21833/head
Richard Lewis 2017-07-28 16:48:13 +01:00
parent 9935dd0051
commit 6aa1d923ce
1 changed files with 2 additions and 0 deletions

View File

@ -142,6 +142,8 @@ export default React.createClass({
} }
}, },
// Widget labels to render, depending upon user permissions
// These strings are translated at the point that they are inserted in to the DOM, in the render method
_deleteWidgetLabel() { _deleteWidgetLabel() {
if (this._canUserModify()) { if (this._canUserModify()) {
return 'Delete widget'; return 'Delete widget';