mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-19 16:13:06 +00:00
refactor: adjust to changes in core definitions
This commit is contained in:
@@ -246,9 +246,7 @@ const sampleIndexResponse: SCIndexResponse = {
|
||||
coordinates: [[[1, 2]], [[1, 2]]],
|
||||
type: 'Polygon',
|
||||
},
|
||||
features: {
|
||||
widgets: false,
|
||||
},
|
||||
features: {},
|
||||
menus: [
|
||||
{
|
||||
icon: 'icon',
|
||||
@@ -306,6 +304,7 @@ const sampleIndexResponse: SCIndexResponse = {
|
||||
},
|
||||
],
|
||||
},
|
||||
auth: {},
|
||||
backend: {
|
||||
SCVersion: scVersion,
|
||||
externalRequestTimeout: 5000,
|
||||
|
||||
@@ -30,12 +30,13 @@ export class DataIconPipe implements PipeTransform {
|
||||
constructor() {
|
||||
this.typeIconMap = {
|
||||
'academic event': 'school',
|
||||
'assessment': 'document-text',
|
||||
'article': 'document',
|
||||
'book': 'book',
|
||||
'building': 'location',
|
||||
'catalog': 'folder',
|
||||
'contact point': 'call',
|
||||
'course of studies': 'school',
|
||||
'course of study': 'school',
|
||||
'date series': 'calendar',
|
||||
'dish': 'restaurant',
|
||||
'favorite': 'heart',
|
||||
|
||||
@@ -29,6 +29,7 @@ import {
|
||||
SCThingType,
|
||||
SCSaveableThing,
|
||||
SCFeedbackRequest,
|
||||
SCFeedbackResponse,
|
||||
} from '@openstapps/core';
|
||||
import {chunk, fromPairs, toPairs} from 'lodash-es';
|
||||
import {environment} from '../../../environments/environment';
|
||||
@@ -299,7 +300,11 @@ export class DataProvider {
|
||||
* @param feedback Feedback message to be sent to the backend
|
||||
*/
|
||||
async sendFeedback(feedback: SCFeedbackRequest) {
|
||||
return this.client.feedback(feedback);
|
||||
return this.client.invokePlugin<SCFeedbackResponse>(
|
||||
'feedback',
|
||||
undefined,
|
||||
feedback,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div>
|
||||
<h2>
|
||||
<h2 *ngIf="offers[0].prices">
|
||||
{{ offers[0].prices.default | currency: 'EUR':'symbol':undefined:'de' }}
|
||||
</h2>
|
||||
<p *ngIf="offers[0].inPlace">
|
||||
|
||||
@@ -21,20 +21,6 @@ export class NavigationService {
|
||||
} catch (error) {
|
||||
this.logger.error(`error from loading menu entries: ${error}`);
|
||||
}
|
||||
// TODO: Load if from the backend (config)
|
||||
menu[1].items.unshift({
|
||||
icon: 'person',
|
||||
route: '/profile',
|
||||
title: 'profile',
|
||||
translations: {
|
||||
de: {
|
||||
title: 'Profil',
|
||||
},
|
||||
en: {
|
||||
title: 'profile',
|
||||
},
|
||||
},
|
||||
});
|
||||
return menu;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user