[all] flag to hide file name from toolbar

This commit is contained in:
Maxim Kadushkin 2019-02-06 16:50:55 +03:00
parent 2d613dae77
commit 4866923553
5 changed files with 16 additions and 1 deletions

View file

@ -124,7 +124,8 @@
showReviewChanges: false,
help: true,
compactHeader: false,
toolbarBreakTabs: false
toolbarBreakTabs: false,
toolbarHideFileName: false
},
plugins: {
autostart: ['asc.{FFE1F462-1EA2-4391-990D-4CC84940B754}'],

View file

@ -362,6 +362,10 @@
}
}
&.style-skip-docname .toolbar {
#box-doc-name > input {
display: none;
}
}
}

View file

@ -165,7 +165,11 @@ define([
if ( config.canBranding ) {
if ( config.customization.toolbarBreakTabs )
me.viewport.vlayout.getItem('toolbar').el.addClass('style-off-tabs');
if ( config.customization.toolbarHideFileName )
me.viewport.vlayout.getItem('toolbar').el.addClass('style-skip-docname');
}
if ( config.isEdit && (!config.canBranding || !config.customization.compactHeader)) {
var $title = me.viewport.vlayout.getItem('title').el;
$title.html(me.header.getPanel('title', config)).show();

View file

@ -188,6 +188,9 @@ define([
if ( config.canBranding ) {
if ( config.customization.toolbarBreakTabs )
me.viewport.vlayout.getItem('toolbar').el.addClass('style-off-tabs');
if ( config.customization.toolbarHideFileName )
me.viewport.vlayout.getItem('toolbar').el.addClass('style-skip-docname');
}
},

View file

@ -168,6 +168,9 @@ define([
if ( config.canBranding ) {
if ( config.customization.toolbarBreakTabs )
me.viewport.vlayout.getItem('toolbar').el.addClass('style-off-tabs');
if ( config.customization.toolbarHideFileName )
me.viewport.vlayout.getItem('toolbar').el.addClass('style-skip-docname');
}
},