<!ENTITY staff.main.auth.hostname "Hostname">
<!ENTITY staff.main.auth.hostname.accesskey "H">
<!ENTITY staff.main.auth.offline.caption "Offline Use">
+<!ENTITY staff.main.auth.offline.message "Offline Transactions Pending">
<!ENTITY staff.main.auth.offline.export "Export Transactions">
<!ENTITY staff.main.auth.offline.import "Import Transactions">
<!ENTITY staff.main.auth.offline.interface "Standalone Interface">
false
);
+ /**
+ @brief Stats for Offline Files / Transactions
+ @launchpad #797408
+ */
+ var px = new util.file('pending_xacts');
+ document.getElementById('offline_message').setAttribute('style','display:none;');
+ if (px._file.exists()) {
+ document.getElementById('offline_message').setAttribute('style','background-color:red;display:block;font-weight:bold;padding:2px;');
+ document.getElementById('offline_import_btn').disabled = true;
+ }
} catch(E) {
var error = offlineStrings.getFormattedString('common.exception', [E, '']);
</grid>
</groupbox>
+ <!-- Offline Information Section -->
<groupbox flex="1">
<caption label="&staff.main.auth.offline.caption;"/>
+ <hbox><label id="offline_message" value="&staff.main.auth.offline.message;" style="display:none;" /></hbox>
<hbox><button label="&staff.main.auth.offline.interface;" accesskey="&staff.main.auth.offline.interface.accesskey;" command="cmd_standalone"/></hbox>
<hbox><button label="&staff.main.auth.offline.export;" command="cmd_standalone_export"/></hbox>
<hbox><button label="&staff.main.auth.offline.import;" command="cmd_standalone_import"/></hbox>
</groupbox>
+
</row>
</rows>
</grid>