Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
<div class="badge badge-warning p-2" i18n>Login Failed</div>
</div>
</div>
+
+ <div class="row" *ngIf="pendingXactsDate">
+ <div class="col-lg-8 offset-lg-4 alert alert-warning mt-2">
+ Unprocessed offline transactions waiting for upload.
+ Last transaction added at {{pendingXactsDate | date:'short'}}.
+ </div>
+ </div>
</form>
</fieldset>
</div>
workstations: any[];
loginFailed: boolean;
routeTo: string;
+ pendingXactsDate: Date;
args = {
username : '',
this.args.workstation = def;
this.applyWorkstation();
});
+
+ this.offline.pendingXactsDate().then(d => this.pendingXactsDate = d);
}
applyWorkstation() {
rows: rows
});
}
+
+ // Return promise of cache date when pending transactions exit.
+ pendingXactsDate(): Promise<Date> {
+ return this.db.request({
+ schema: 'cache',
+ table: 'CacheDate',
+ action: 'selectWhereEqual',
+ field: 'type',
+ value: '_offlineXact'
+ }).then(results => results[0] ? results[0].cachedate : null);
+ }
}