Merge pull request #1104 from ONLYOFFICE/feature/bug-fixes
Feature/bug fixes
This commit is contained in:
commit
2d08d12cd8
|
@ -48,6 +48,11 @@
|
|||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
&-inner {
|
||||
background: var(--f7-navbar-bg-color);
|
||||
background-image: var(--f7-navbar-bg-image, var(--f7-bars-bg-image));
|
||||
background-color: var(--f7-navbar-bg-color, var(--f7-bars-bg-color));
|
||||
}
|
||||
}
|
||||
|
||||
.page.page-with-subnavbar.page-with-logo {
|
||||
|
|
|
@ -335,7 +335,8 @@
|
|||
"txtExpandSort": "The data next to the selection will not be sorted. Do you want to expand the selection to include the adjacent data or continue with sorting the currently selected cells only?",
|
||||
"txtNotUrl": "This field should be a URL in the format \"http://www.example.com\"",
|
||||
"txtSorting": "Sorting",
|
||||
"txtSortSelected": "Sort selected"
|
||||
"txtSortSelected": "Sort selected",
|
||||
"textSelectedRange": "Selected Range"
|
||||
},
|
||||
"Edit": {
|
||||
"notcriticalErrorTitle": "Warning",
|
||||
|
|
|
@ -87,7 +87,10 @@ class AddLinkController extends Component {
|
|||
display = args.sheet + '!' + args.url;
|
||||
}
|
||||
|
||||
link.asc_setText(args.text == null ? null : !!args.text ? args.text : display);
|
||||
if(this.displayText !== 'locked') {
|
||||
link.asc_setText(args.text == null ? null : !!args.text ? args.text : display);
|
||||
}
|
||||
|
||||
link.asc_setTooltip(args.tooltip);
|
||||
|
||||
api.asc_insertHyperlink(link);
|
||||
|
|
|
@ -61,6 +61,7 @@ const AddLinkView = props => {
|
|||
let displayText = props.displayText;
|
||||
const displayDisabled = displayText === 'locked';
|
||||
displayText = displayDisabled ? _t.textSelectedRange : displayText;
|
||||
|
||||
const [stateDisplayText, setDisplayText] = useState(displayText);
|
||||
const [stateAutoUpdate, setAutoUpdate] = useState(true);
|
||||
const [screenTip, setScreenTip] = useState('');
|
||||
|
@ -89,7 +90,7 @@ const AddLinkView = props => {
|
|||
value={link}
|
||||
onChange={(event) => {
|
||||
setLink(event.target.value);
|
||||
if((!stateDisplayText || stateDisplayText === link) && stateAutoUpdate) setDisplayText(event.target.value);
|
||||
if((!stateDisplayText || stateDisplayText === link) && stateAutoUpdate && !displayDisabled) setDisplayText(event.target.value);
|
||||
}}
|
||||
className={isIos ? 'list-input-right' : ''}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue