Small edits for link settings
This commit is contained in:
parent
eeb9bcfce8
commit
e8d3cd5ca5
|
@ -41,7 +41,7 @@ class EditLinkController extends Component {
|
||||||
const urltype = api.asc_getUrlType(url.trim());
|
const urltype = api.asc_getUrlType(url.trim());
|
||||||
const isEmail = (urltype == 2);
|
const isEmail = (urltype == 2);
|
||||||
if (urltype < 1) {
|
if (urltype < 1) {
|
||||||
f7.dialog.alert(_t.txtNotUrl, _t.notcriticalErrorTitle);
|
f7.dialog.alert(_t.textNotUrl, _t.notcriticalErrorTitle);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ const PageLink = props => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const textType = typeLink === 1 ? _t.textExternalLink : _t.textSlideInThisPresentation;
|
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) => {
|
const changeTo = (slideLink, number) => {
|
||||||
switch (slideLink) {
|
switch (slideLink) {
|
||||||
|
@ -132,7 +132,7 @@ const PageLink = props => {
|
||||||
<ListItem link={'/edit-link-type/'} title={_t.textLinkType} after={textType} routeProps={{
|
<ListItem link={'/edit-link-type/'} title={_t.textLinkType} after={textType} routeProps={{
|
||||||
curType: typeLink
|
curType: typeLink
|
||||||
}} />
|
}} />
|
||||||
{typeLink === 1 ?
|
{typeLink !== 0 ?
|
||||||
<ListInput label={_t.textLink}
|
<ListInput label={_t.textLink}
|
||||||
type="text"
|
type="text"
|
||||||
placeholder={_t.textLink}
|
placeholder={_t.textLink}
|
||||||
|
|
Loading…
Reference in a new issue