From 680221cff42d8f86437bdc4e15c9e39980144902 Mon Sep 17 00:00:00 2001 From: Sylvain Machefert Date: Fri, 18 May 2018 08:51:50 +0200 Subject: [PATCH] Total number of operations for Undo / Redo Currently, if you revert to the first operation in your project history, you will see Undo / Redo 0. Opening an old project this morning I was confused and thought it was a new one because of this, but in fact I already had many operations on this project, it was just that before closing it I had viewed the file at first operation. This PR proposes to change the display to Undo / Redo 1/n with n the total number of operations available. --- main/webapp/modules/core/scripts/project/history-panel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/webapp/modules/core/scripts/project/history-panel.js b/main/webapp/modules/core/scripts/project/history-panel.js index 8116ff6fa..abc49871f 100644 --- a/main/webapp/modules/core/scripts/project/history-panel.js +++ b/main/webapp/modules/core/scripts/project/history-panel.js @@ -69,7 +69,7 @@ HistoryPanel.prototype.update = function(onDone) { HistoryPanel.prototype._render = function() { var self = this; - this._tabHeader.html($.i18n._('core-project')["undo-redo"]+' ' + this._data.past.length + ''); + this._tabHeader.html($.i18n._('core-project')["undo-redo"]+' ' + this._data.past.length + ' / ' + ( this._data.future.length + this._data.past.length ) + ''); this._div.empty().unbind().html(DOM.loadHTML("core", "scripts/project/history-panel.html"));