Merge pull request #1056 from ONLYOFFICE/feature/bug-fixes
Feature/bug fixes
This commit is contained in:
commit
4900bdc57b
|
@ -11,7 +11,7 @@ const ThemeColors = ({ themeColors, onColorClick, curColor }) => {
|
||||||
{row.map((effect, index) => {
|
{row.map((effect, index) => {
|
||||||
return(
|
return(
|
||||||
<a key={`tc-${rowIndex}-${index}`}
|
<a key={`tc-${rowIndex}-${index}`}
|
||||||
className={(curColor && curColor.color === effect.color && curColor.effectValue === effect.effectValue) ? 'active' : ''}
|
className={(curColor && ((curColor.color === effect.color && curColor.effectValue === effect.effectValue) || (curColor === effect.color))) ? 'active' : ''}
|
||||||
style={{ background: `#${effect.color}`}}
|
style={{ background: `#${effect.color}`}}
|
||||||
onClick={() => {onColorClick(effect.color, effect.effectId, effect.effectValue)}}
|
onClick={() => {onColorClick(effect.color, effect.effectId, effect.effectValue)}}
|
||||||
></a>
|
></a>
|
||||||
|
|
|
@ -150,8 +150,8 @@ class ContextMenuController extends Component {
|
||||||
this.setState({openedMore: false});
|
this.setState({openedMore: false});
|
||||||
}
|
}
|
||||||
|
|
||||||
onMenuItemClick(action) {
|
async onMenuItemClick(action) {
|
||||||
this.onApiHideContextMenu();
|
await this.onApiHideContextMenu();
|
||||||
|
|
||||||
if (action === 'showActionSheet') {
|
if (action === 'showActionSheet') {
|
||||||
this.setState({openedMore: true});
|
this.setState({openedMore: true});
|
||||||
|
|
|
@ -37,13 +37,11 @@ class SearchSettings extends SearchSettingsView {
|
||||||
</Navbar>
|
</Navbar>
|
||||||
<List>
|
<List>
|
||||||
<ListItem radio title={_t.textFind} name="find-replace-checkbox" checked={!this.state.useReplace} onClick={e => this.onFindReplaceClick('find')} />
|
<ListItem radio title={_t.textFind} name="find-replace-checkbox" checked={!this.state.useReplace} onClick={e => this.onFindReplaceClick('find')} />
|
||||||
{isEdit ?
|
{isEdit ? [
|
||||||
<ListItem radio title={_t.textFindAndReplace} name="find-replace-checkbox" checked={this.state.useReplace}
|
<ListItem key="replace" radio title={_t.textFindAndReplace} name="find-replace-checkbox" checked={this.state.useReplace}
|
||||||
onClick={e => this.onFindReplaceClick('replace')} />
|
onClick={e => this.onFindReplaceClick('replace')} />,
|
||||||
: null}
|
<ListItem key="replace-all" radio title={_t.textFindAndReplaceAll} name="find-replace-checkbox" checked={this.state.isReplaceAll}
|
||||||
{isEdit ?
|
onClick={() => this.onFindReplaceClick('replace-all')}></ListItem>]
|
||||||
<ListItem radio title={_t.textFindAndReplaceAll} name="find-replace-checkbox" checked={this.state.isReplaceAll}
|
|
||||||
onClick={() => this.onFindReplaceClick('replace-all')}></ListItem>
|
|
||||||
: null}
|
: null}
|
||||||
</List>
|
</List>
|
||||||
<List>
|
<List>
|
||||||
|
|
|
@ -26,7 +26,7 @@ class MainPage extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleClickToOpenOptions = (opts, showOpts) => {
|
handleClickToOpenOptions = (opts, showOpts) => {
|
||||||
ContextMenu.closeContextMenu();
|
f7.popover.close('.document-menu.modal-in', false);
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
let opened = false;
|
let opened = false;
|
||||||
|
|
|
@ -30,13 +30,11 @@ class SearchSettings extends SearchSettingsView {
|
||||||
</Navbar>
|
</Navbar>
|
||||||
<List>
|
<List>
|
||||||
<ListItem radio title={_t.textFind} name="find-replace-checkbox" checked={!this.state.useReplace} onClick={e => this.onFindReplaceClick('find')} />
|
<ListItem radio title={_t.textFind} name="find-replace-checkbox" checked={!this.state.useReplace} onClick={e => this.onFindReplaceClick('find')} />
|
||||||
{isEdit ?
|
{isEdit ? [
|
||||||
<ListItem radio title={_t.textFindAndReplace} name="find-replace-checkbox" checked={this.state.useReplace}
|
<ListItem key="replace" radio title={_t.textFindAndReplace} name="find-replace-checkbox" checked={this.state.useReplace}
|
||||||
onClick={e => this.onFindReplaceClick('replace')} />
|
onClick={e => this.onFindReplaceClick('replace')} />,
|
||||||
: null}
|
<ListItem key="replace-all" radio title={_t.textFindAndReplaceAll} name="find-replace-checkbox" checked={this.state.isReplaceAll}
|
||||||
{isEdit ?
|
onClick={() => this.onFindReplaceClick('replace-all')}></ListItem>]
|
||||||
<ListItem radio title={_t.textFindAndReplaceAll} name="find-replace-checkbox" checked={this.state.isReplaceAll}
|
|
||||||
onClick={() => this.onFindReplaceClick('replace-all')}></ListItem>
|
|
||||||
: null}
|
: null}
|
||||||
</List>
|
</List>
|
||||||
<List>
|
<List>
|
||||||
|
|
|
@ -28,7 +28,7 @@ class MainPage extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleClickToOpenOptions = (opts, showOpts) => {
|
handleClickToOpenOptions = (opts, showOpts) => {
|
||||||
ContextMenu.closeContextMenu();
|
f7.popover.close('.document-menu.modal-in', false);
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
let opened = false;
|
let opened = false;
|
||||||
|
|
|
@ -38,13 +38,11 @@ class SearchSettings extends SearchSettingsView {
|
||||||
</Navbar>
|
</Navbar>
|
||||||
<List>
|
<List>
|
||||||
<ListItem radio title={_t.textFind} name="find-replace-checkbox" checked={!this.state.useReplace} onClick={e => this.onFindReplaceClick('find')} />
|
<ListItem radio title={_t.textFind} name="find-replace-checkbox" checked={!this.state.useReplace} onClick={e => this.onFindReplaceClick('find')} />
|
||||||
{isEdit ?
|
{isEdit ? [
|
||||||
<ListItem radio title={_t.textFindAndReplace} name="find-replace-checkbox" checked={this.state.useReplace}
|
<ListItem key="replace" radio title={_t.textFindAndReplace} name="find-replace-checkbox" checked={this.state.useReplace}
|
||||||
onClick={e => this.onFindReplaceClick('replace')} />
|
onClick={e => this.onFindReplaceClick('replace')} />,
|
||||||
: null}
|
<ListItem key="replace-all" radio title={_t.textFindAndReplaceAll} name="find-replace-checkbox" checked={this.state.isReplaceAll}
|
||||||
{isEdit ?
|
onClick={() => this.onFindReplaceClick('replace-all')}></ListItem>]
|
||||||
<ListItem radio title={_t.textFindAndReplaceAll} name="find-replace-checkbox" checked={this.state.isReplaceAll}
|
|
||||||
onClick={() => this.onFindReplaceClick('replace-all')}></ListItem>
|
|
||||||
: null}
|
: null}
|
||||||
</List>
|
</List>
|
||||||
<BlockTitle>{_t.textSearchIn}</BlockTitle>
|
<BlockTitle>{_t.textSearchIn}</BlockTitle>
|
||||||
|
|
Loading…
Reference in a new issue