[DE PE SSE mobile] Fix Bug 59790

This commit is contained in:
SergeyEzhin 2022-11-21 11:42:53 +04:00
parent bdf39b536f
commit 38c1a37940
3 changed files with 6 additions and 7 deletions

View file

@ -15,7 +15,7 @@ class AddLinkController extends Component {
closeModal () {
if ( Device.phone ) {
f7.popup.close('#add-link-popup');
f7.popup.close('.add-popup');
} else {
f7.popover.close('#add-link-popover');
}
@ -59,7 +59,7 @@ class AddLinkController extends Component {
props.put_ToolTip(tip);
api.add_Hyperlink(props);
this.props.isNavigate ? f7.views.current.router.back() : this.closeModal();
this.props.isNavigate && !Device.phone ? f7.views.current.router.back() : this.closeModal();
}
componentDidMount() {

View file

@ -28,7 +28,7 @@ class AddLinkController extends Component {
closeModal () {
if ( Device.phone ) {
f7.popup.close('#add-link-popup');
f7.popup.close('.add-popup');
} else {
f7.popover.close('#add-link-popover');
}
@ -112,7 +112,7 @@ class AddLinkController extends Component {
props.put_Text(null);
api.add_Hyperlink(props);
this.props.isNavigate ? f7.views.current.router.back() : this.closeModal();
this.props.isNavigate && !Device.phone ? f7.views.current.router.back() : this.closeModal();
}
getTextDisplay () {

View file

@ -110,14 +110,13 @@ class AddLinkController extends Component {
}
link.asc_setTooltip(args.tooltip);
api.asc_insertHyperlink(link);
this.props.isNavigate ? f7.views.current.router.back() : this.closeModal();
this.props.isNavigate && !Device.phone ? f7.views.current.router.back() : this.closeModal();
}
closeModal () {
if ( Device.phone ) {
f7.popup.close('#add-link-popup');
f7.popup.close('.add-popup');
} else {
f7.popover.close('#add-link-popover');
}