X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/c11ad12846df3142b19a343144fe1d2a82b97569..105a4e9cdd9d1dffdff6411e7b7e83ff507c68e6:/src/editor/plugins/core/core.js diff --git a/src/editor/plugins/core/core.js b/src/editor/plugins/core/core.js index d0a376d..a27ec9e 100644 --- a/src/editor/plugins/core/core.js +++ b/src/editor/plugins/core/core.js @@ -62,6 +62,9 @@ var undoRedoAction = function(dir) { var allowed = params.document && !!(params.document[dir+'Stack'].length), desc = dir === 'undo' ? gettext('Undo') : gettext('Redo'), descEmpty = dir === 'undo' ? gettext('There is nothing to undo') : gettext('There is nothing to redo'); + if(allowed) { + desc += ': ' + (_.last(params.document[dir+'Stack']).metadata || gettext('unknown operation')); + } return { allowed: allowed, description: allowed ? desc : descEmpty