Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Natsumi-sama committed Jan 2, 2024
1 parent 84a2721 commit e27a470
Showing 1 changed file with 29 additions and 14 deletions.
43 changes: 29 additions & 14 deletions html/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,6 @@ speechSynthesis.getVoices();

API.logout = function () {
this.$emit('LOGOUT');
webApiService.clearCookies();
// return this.call('logout', {
// method: 'PUT'
// }).finally(() => {
Expand Down Expand Up @@ -2681,6 +2680,12 @@ speechSynthesis.getVoices();
userId: json.id
}
});
if (json.location === 'traveling') {
this.getUser({
userId: json.id
});
// console.log('Fetching traveling user', json.id);
} // ?? hmm
}
});

Expand Down Expand Up @@ -7542,7 +7547,7 @@ speechSynthesis.getVoices();
.loginParmas.username,
password: pt
};
this.updateStoredUser(
await this.updateStoredUser(
this.loginForm.savedCredentials[userId].user
);
await configRepository.setBool(
Expand Down Expand Up @@ -14898,7 +14903,7 @@ speechSynthesis.getVoices();
};

// setting defaults
var sharedFeedFilters = {
$app.data.sharedFeedFiltersDefaults = {
noty: {
Location: 'Off',
OnPlayerJoined: 'VIP',
Expand Down Expand Up @@ -14976,12 +14981,15 @@ speechSynthesis.getVoices();
Unmuted: 'On'
}
};
$app.data.sharedFeedFilters = JSON.parse(
await configRepository.getString(
'sharedFeedFilters',
JSON.stringify(sharedFeedFilters)
)
);
$app.data.sharedFeedFilters = $app.data.sharedFeedFiltersDefaults;
if (await configRepository.getString('sharedFeedFilters')) {
$app.data.sharedFeedFilters = JSON.parse(
await configRepository.getString(
'sharedFeedFilters',
JSON.stringify($app.data.sharedFeedFiltersDefaults)
)
);
}
if (!$app.data.sharedFeedFilters.noty.Blocked) {
$app.data.sharedFeedFilters.noty.Blocked = 'Off';
$app.data.sharedFeedFilters.noty.Unblocked = 'Off';
Expand Down Expand Up @@ -15095,9 +15103,16 @@ speechSynthesis.getVoices();
$app.methods.cancelSharedFeedFilters = async function () {
this.notyFeedFiltersDialog.visible = false;
this.wristFeedFiltersDialog.visible = false;
this.sharedFeedFilters = JSON.parse(
await configRepository.getString('sharedFeedFilters')
);
if (await configRepository.getString('sharedFeedFilters')) {
this.sharedFeedFilters = JSON.parse(
await configRepository.getString(
'sharedFeedFilters',
JSON.stringify(this.sharedFeedFiltersDefaults)
)
);
} else {
this.sharedFeedFilters = this.sharedFeedFiltersDefaults;
}
};

$app.data.notificationPosition = await configRepository.getString(
Expand Down Expand Up @@ -24866,7 +24881,7 @@ speechSynthesis.getVoices();
data: [],
filters: [
{
prop: 'name',
prop: 'worldName',
value: ''
}
],
Expand Down Expand Up @@ -24966,7 +24981,7 @@ speechSynthesis.getVoices();
data: [],
filters: [
{
prop: 'name',
prop: 'groupName',
value: ''
}
],
Expand Down

0 comments on commit e27a470

Please sign in to comment.