Small edits for link settings

This commit is contained in:
SergeyEzhin 2021-02-03 16:16:24 +03:00
parent eeb9bcfce8
commit e8d3cd5ca5
2 changed files with 3 additions and 3 deletions

View file

@ -41,7 +41,7 @@ class EditLinkController extends Component {
const urltype = api.asc_getUrlType(url.trim());
const isEmail = (urltype == 2);
if (urltype < 1) {
f7.dialog.alert(_t.txtNotUrl, _t.notcriticalErrorTitle);
f7.dialog.alert(_t.textNotUrl, _t.notcriticalErrorTitle);
return;
}

View file

@ -106,7 +106,7 @@ const PageLink = props => {
}
const textType = typeLink === 1 ? _t.textExternalLink : _t.textSlideInThisPresentation;
const [link, setLink] = useState(typeLink !== 0 ? [url.replace(new RegExp(" ", 'g'), "%20")] : '');
const [link, setLink] = useState(typeLink !== 0 ? url : '');
const changeTo = (slideLink, number) => {
switch (slideLink) {
@ -132,7 +132,7 @@ const PageLink = props => {
<ListItem link={'/edit-link-type/'} title={_t.textLinkType} after={textType} routeProps={{
curType: typeLink
}} />
{typeLink === 1 ?
{typeLink !== 0 ?
<ListInput label={_t.textLink}
type="text"
placeholder={_t.textLink}