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 isEmail = (urltype == 2);
 | 
			
		||||
            if (urltype < 1) {
 | 
			
		||||
                f7.dialog.alert(_t.txtNotUrl, _t.notcriticalErrorTitle);
 | 
			
		||||
                f7.dialog.alert(_t.textNotUrl, _t.notcriticalErrorTitle);
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue