Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • E Embedded Genesys UI
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Genesys PGRGenesys PGR
  • Embedded Genesys UI
  • Issues
  • #14
Closed
Open
Issue created Nov 18, 2020 by Matija Obreza@mobrezaOwner

Configuring features

Some websites may need to enable/disable specific features (e.g. No shopping cart) or may want to configure specific settings.

In this issue, we extend the class Config with new properties:

import AccessionConfig from 'accession/Config';
// import RequestConfig from 'request/Config';
// import MapConfig from 'map/Config';

export class Config {
  public apiUrl: string;
  public clientId: string;
  public clientKey: string;
  public filter: Record<string, any>;
  public language: string; // Please move language selection to config
  // module config
  public accessions: Partial<AccessionConfig>;
//  public requests: Partial<RequestConfig>;

RequestConfig has { enabled: false } which disables all shopping cart functions.

MapConfig would have { baseMap: "https://mapserver/foobar/tile/{z}/{x}/{y}" } that configures the base map layer and { enabled: false } would prevent showing any map components.

Please move language selection to config object.

Accessing the config in components will be simple after #10 (closed)

Edited Nov 19, 2020 by Matija Obreza
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking