diff --git a/README.md b/README.md index 132f8ba..4184c29 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,20 @@ The *KOI-System* is framework for lifecycle-management of machine learning solutions. As such it allows the user to create, train, and deploy ML-solutions. "*KOI*" is an abbreviation of the german name "Kognitive Objekt-orientierte Intelligenz", which translates to "cognitive object-oriented intelligence". + +# Debug requirements +To run the application in debug mode, you need to install the following tools: +- Install: [Node.js](https://nodejs.org/en/) (<= 16.19.0) + +In the koi-pwa directory, you can run: +- npm start + +Now by default the PWA is accessible at [http://localhost:8080](http://localhost:8080) + +The PWA needs an [KOI-Api](https://github.com/koi-learning/koi-api) instance to run. +Connect your local or remote API by setting the ```apiBase``` variable in your browsers local storage. + +For Chrome do the following: +- open the development console +- Application -> LocalStorage -> apiBase +- enter the full url to the service endpoint diff --git a/src/components/accessCards.ts b/src/components/accessCards.ts index b4621e2..bf35e96 100644 --- a/src/components/accessCards.ts +++ b/src/components/accessCards.ts @@ -43,7 +43,7 @@ import { CRUDEntityState } from "@src/store/crud"; @customElement("access-card") export class AccessCard extends LitElement { - @property() role: GeneralRole | ModelRole | InstanceRole; // Todo Unify Type + @property() aRole: GeneralRole | ModelRole | InstanceRole; // Todo Unify Type @property() users: UserEntityState; @property() access: | EntityState @@ -61,7 +61,7 @@ export class AccessCard extends LitElement { if ( this.users && this.access && - (changedProperties.has("role") || + (changedProperties.has("aRole") || changedProperties.has("users") || changedProperties.has("access")) ) { @@ -71,7 +71,7 @@ export class AccessCard extends LitElement { this.access.ids.find( (id) => this.access.entities[id].user_uuid == user && - this.access.entities[id].role_uuid == this.role.role_uuid + this.access.entities[id].role_uuid == this.aRole.role_uuid ) != null ) .map((id) => this.users.entities[id]); @@ -81,7 +81,7 @@ export class AccessCard extends LitElement { this.access.ids.find( (id) => this.access.entities[id].user_uuid == user && - this.access.entities[id].role_uuid == this.role.role_uuid + this.access.entities[id].role_uuid == this.aRole.role_uuid ) == null ) .map((id) => this.users.entities[id]); @@ -135,7 +135,7 @@ export class AccessCard extends LitElement {