Commit f55ce0d3 authored by Julia Radzhabova's avatar Julia Radzhabova

[DE] Don't restore last version. Don't show changes by default.

parent 2afdb191
......@@ -400,7 +400,8 @@ define([
docId: version.key,
markedAsVersion: (group!==version.versionGroup),
selected: (opts.data.currentVersion == version.version),
canRestore: this.appOptions.canHistoryRestore
canRestore: this.appOptions.canHistoryRestore && (ver < versions.length-1),
isExpanded: false
}));
if (opts.data.currentVersion == version.version) {
currentVersion = arrVersions[arrVersions.length-1];
......@@ -447,7 +448,8 @@ define([
docIdPrev: docIdPrev,
selected: false,
canRestore: this.appOptions.canHistoryRestore,
isRevision: false
isRevision: false,
isVisible: false
}));
arrColors.push(user.get('colorval'));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment