Commit 59a0d4d6 authored by Laurent's avatar Laurent

back button on card, parameters and novelties bring back to loans page

fix notifyToRefresh call when user has changed screen
parent b2e67007
......@@ -483,8 +483,13 @@ export class LibraryController extends Controller {
if (!this._view)
return this;
this._view.getViewById("loans").notifyPullToRefreshFinished();
this._view.getViewById("holds").notifyPullToRefreshFinished();
let loans = this._view.getViewById("loans")
if (loans != undefined)
loans.notifyPullToRefreshFinished();
let holds = this._view.getViewById("holds")
if (holds != undefined)
holds.notifyPullToRefreshFinished();
let indicator = this._view.getViewById("activity-indicator");
if (!indicator || (undefined == indicator.animate))
......
<Page xmlns:accounts="views/accounts">
<Page.actionBar>
<ActionBar title="{{ L('account_parameters') }}" icon="">
<NavigationButton android.systemIcon="ic_menu_back" tap="{{ goBack }}"/>
</ActionBar>
<DockLayout stretchLastChild="true">
<StackLayout dock="bottom">
......
<Page xmlns:nsDrawer="nativescript-ui-sidedrawer" xmlns:shared="views/shared" loaded="{{ onPageLoaded }}">
<Page.actionBar>
<ActionBar title="{{ page_title }}" icon="">
<NavigationButton android.systemIcon="ic_menu_back" tap="{{ goHomeAction }}"/>
<NavigationButton android.systemIcon="ic_menu_back" tap="{{ goBack }}"/>
<ActionItem text="{{ L('menu) }}" tap="{{ toggleDrawerAction }}">
<ActionItem.actionView>
......
<Page xmlns:nsDrawer="nativescript-ui-sidedrawer" xmlns:lv="nativescript-ui-listview" xmlns:shared="views/shared" loaded="{{ onPageLoaded }}">
<Page.actionBar>
<ActionBar title="{{ L('novelties') }}" icon="">
<NavigationButton android.systemIcon="ic_menu_back" tap="{{ goHomeAction }}"/>
<NavigationButton android.systemIcon="ic_menu_back" tap="{{ goBack }}"/>
<ActionItem text="{{ L('menu) }}" tap="{{ toggleDrawerAction }}">
<ActionItem.actionView>
<Label text='&#xf0c9;'/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment