fix: setting of default language

This commit is contained in:
Rainer Killinger
2021-02-23 11:35:39 +01:00
parent 350185b0d3
commit ccf8b1a5cc
6 changed files with 16 additions and 14 deletions

View File

@@ -48,11 +48,14 @@ export class ConfigProvider {
* App configuration as IndexResponse
*/
config: SCIndexResponse;
/**
* First session indicator
*/
firstSession = true;
/**
* Initialised status flag of config provider
*/
initialised = false;
/**
* Version of the @openstapps/core package that app is using
*/
@@ -117,6 +120,7 @@ export class ConfigProvider {
// load saved configuration
try {
this.config = await this.loadLocal();
this.firstSession = false;
this.initialised = true;
this.logger.log(`initialised configuration from storage`);
if (this.config.backend.SCVersion !== this.scVersion) {

View File

@@ -14,7 +14,7 @@
*/
import {Injectable} from '@angular/core';
import {Client} from '@openstapps/api/lib/client';
import {SCSearchQuery, SCSearchResponse, SCThingOriginType, SCThings, SCThingType} from '@openstapps/core';
import {SCSearchRequest, SCSearchResponse, SCThingOriginType, SCThings, SCThingType} from '@openstapps/core';
import {SCSaveableThing} from '@openstapps/core';
import {environment} from '../../../environments/environment';
import {StorageProvider} from '../storage/storage.provider';
@@ -169,7 +169,7 @@ export class DataProvider {
*
* @param query - query to send to the backend
*/
async search(query: SCSearchQuery): Promise<SCSearchResponse> {
async search(query: SCSearchRequest): Promise<SCSearchResponse> {
return (this.client.search(query));
}