Compare commits

...

8 Commits

5 changed files with 11 additions and 7 deletions

View File

@@ -1357,6 +1357,7 @@ function resetDb() {
osUpdateTimes.put({ table: 'news', time: 0 });
osUpdateTimes.put({ table: 'users', time: 0 });
osUpdateTimes.put({ table: 'expenditures', time: 0 });
osUpdateTimes.put({ table: 'loggedin', status: isLoggedIn() });
log('[db] DB update times reset');
hideLoader();
}

View File

@@ -320,7 +320,7 @@ function pushesSubscribe() {
applicationServerKey: applicationServerKey
})
.then(async function(subscription) {
log('[app] Subscription:', subscription);
log('[app] Subscription:', JSON.stringify(subscription));
if (await pushesUpdateServerSubscription(subscription, true)) {
log('[app] Subscription: Sent to server, updating UI');
dbSettingsSet('notify_endpoint_' + BOATCLASS, subscription.endpoint);
@@ -346,7 +346,7 @@ function pushesUnSubscribe(silent = false) {
log('[app] Unsubscribing');
swRegistration.pushManager.getSubscription()
.then(async function(subscription) {
log('[app] Subscription:', subscription);
log('[app] Subscription:', JSON.stringify(subscription));
if (subscription) {
if (await pushesUpdateServerSubscription(subscription, false)) {
log('[app] Subscription: Removed from server');
@@ -374,7 +374,7 @@ function pushesUnSubscribe(silent = false) {
function pushesUpdateServerSubscription(subscription, enabled) {
return new Promise(function(resolve){
log('[app] updateServer', enabled, subscription);
log('[app] updateServer', enabled, JSON.stringify(subscription));
$.ajax({
url: QUERY_URL + (enabled ? 'add' : 'remove') + '_subscription',
type: 'POST',
@@ -477,7 +477,7 @@ function updatePushBadge() {
var dbSub = await dbSettingsGet('notify_endpoint_' + BOATCLASS);
var isSub = (subscription !== null);
log('[app] DB Subscription:', dbSub);
log('[app] Real Subscription:', subscription);
log('[app] Real Subscription:', JSON.stringify(subscription));
if (isSub) {
$('#badge-pushes').removeClass('bg-red2-dark').addClass('bg-green2-dark').text('AN');
if (dbSub === null) dbSettingsSet('notify_endpoint_' + BOATCLASS, subscription.endpoint);

View File

@@ -201,11 +201,14 @@
justify-content: center;
}
.expenditures-list > div.sum > div:nth-child(1) > div:nth-child(1) {
background: white;
background: #fff;
width: initial;
margin-top: -1em;
padding: 0 .5em;
}
.theme-dark .expenditures-list > div.sum > div:nth-child(1) > div:nth-child(1) {
background-color: #0f1117;
}
/*** NORMAL LIST ***/
.normal-list > div {

View File

@@ -57,7 +57,7 @@
</div>
</div>
<div id="menu-more" class="menu menu-box-bottom menu-box-detached rounded-m" data-menu-height="360" >
<div id="menu-more" class="menu menu-box-bottom menu-box-detached rounded-m" data-menu-height="410" >
<div class="menu-title"><h1>Mehr</h1><p class="color-highlight">&nbsp;</p><a href="#" class="close-menu"><i class="fa fa-times"></i></a></div>
<div class="divider divider-margins mb-n2"></div>
<div class="content">

View File

@@ -1,5 +1,5 @@
<?php
define('PWA_VERSION', '1.13');
define('PWA_VERSION', '1.13h4');
?>