[DE mobile] [PE mobile] [SSE mobile] Display Collaboration in view mode

This commit is contained in:
Julia Svinareva 2019-06-04 17:59:42 +03:00
parent 2fc00165c9
commit 739bfb5471
7 changed files with 6 additions and 9 deletions

View file

@ -253,9 +253,6 @@ define([
if(_stateDisplayMode == "Final" || _stateDisplayMode == "Original") { if(_stateDisplayMode == "Final" || _stateDisplayMode == "Original") {
$('#settings-document').addClass('disabled'); $('#settings-document').addClass('disabled');
} }
if(!_canReview) {
$('#settings-collaboration').hide();
}
} }
}, },

View file

@ -43,7 +43,7 @@
</a> </a>
<% } %> <% } %>
<% if (!phone) { %> <% if (!phone) { %>
<a href="#" id="toolbar-collaboration" class="link icon-only" style="display: none;"> <a href="#" id="toolbar-collaboration" class="link icon-only">
<i class="icon icon-collaboration"></i> <i class="icon icon-collaboration"></i>
</a> </a>
<% } %> <% } %>

View file

@ -101,7 +101,7 @@ define([
setMode: function (mode) { setMode: function (mode) {
if (mode.isEdit) { if (mode.isEdit) {
$('#toolbar-edit, #toolbar-add, #toolbar-undo, #toolbar-redo, #toolbar-collaboration').show(); $('#toolbar-edit, #toolbar-add, #toolbar-undo, #toolbar-redo').show();
} else if (mode.canEdit && mode.canRequestEditRights){ } else if (mode.canEdit && mode.canRequestEditRights){
$('#toolbar-edit-document').show(); $('#toolbar-edit-document').show();
} }

View file

@ -46,7 +46,7 @@
</a> </a>
<% } %> <% } %>
<% if (!phone) { %> <% if (!phone) { %>
<a href="#" id="toolbar-collaboration" class="link icon-only" style="display: none;"> <a href="#" id="toolbar-collaboration" class="link icon-only">
<i class="icon icon-collaboration"></i> <i class="icon icon-collaboration"></i>
</a> </a>
<% } %> <% } %>

View file

@ -102,7 +102,7 @@ define([
setMode: function (mode) { setMode: function (mode) {
if (mode.isEdit) { if (mode.isEdit) {
$('#toolbar-edit, #toolbar-add, #toolbar-undo, #toolbar-redo, #toolbar-collaboration').show(); $('#toolbar-edit, #toolbar-add, #toolbar-undo, #toolbar-redo').show();
} else if (mode.canEdit && mode.canRequestEditRights){ } else if (mode.canEdit && mode.canRequestEditRights){
$('#toolbar-edit-document').show(); $('#toolbar-edit-document').show();
} }

View file

@ -43,7 +43,7 @@
</a> </a>
<% } %> <% } %>
<% if (!phone) { %> <% if (!phone) { %>
<a href="#" id="toolbar-collaboration" class="link icon-only" style="display: none;"> <a href="#" id="toolbar-collaboration" class="link icon-only">
<i class="icon icon-collaboration"></i> <i class="icon icon-collaboration"></i>
</a> </a>
<% } %> <% } %>

View file

@ -94,7 +94,7 @@ define([
setMode: function (mode) { setMode: function (mode) {
if (mode.isEdit) { if (mode.isEdit) {
$('#toolbar-edit, #toolbar-add, #toolbar-undo, #toolbar-redo, #toolbar-collaboration').show(); $('#toolbar-edit, #toolbar-add, #toolbar-undo, #toolbar-redo').show();
} else if (mode.canEdit && mode.canRequestEditRights){ } else if (mode.canEdit && mode.canRequestEditRights){
$('#toolbar-edit-document').show(); $('#toolbar-edit-document').show();
} }