diff --git a/Step/wwwroot/src/@types/tooling.d.ts b/Step/wwwroot/src/@types/tooling.d.ts index 86776ed5..04eee75c 100644 --- a/Step/wwwroot/src/@types/tooling.d.ts +++ b/Step/wwwroot/src/@types/tooling.d.ts @@ -8,6 +8,7 @@ declare module server { magazinePosConfiguration: Array edgesConfiguration: EdgesConfiguration maxTools: number + maxEdgesPerTools: number } export interface EdgesConfiguration { diff --git a/Step/wwwroot/src/components/tooling-equipment.ts b/Step/wwwroot/src/components/tooling-equipment.ts index 6a9bdbd6..3a05b8be 100644 --- a/Step/wwwroot/src/components/tooling-equipment.ts +++ b/Step/wwwroot/src/components/tooling-equipment.ts @@ -20,6 +20,10 @@ export default class toolingEquipment extends Vue { return (this.$store.state as AppModel).tooling.maxTools; } + public get maxEdgesPerTools(): number{ + return (this.$store.state as AppModel).tooling.maxEdgesPerTools; + } + public searchText: string = ""; public currentFilter: string = ""; diff --git a/Step/wwwroot/src/services/toolingService.ts b/Step/wwwroot/src/services/toolingService.ts index e0d1e149..ae5c6969 100644 --- a/Step/wwwroot/src/services/toolingService.ts +++ b/Step/wwwroot/src/services/toolingService.ts @@ -43,6 +43,7 @@ export class ToolingService extends baseRestService { "api/configuration/tool_manager" ); toolingActions.setMaxTools(store, result.maxTools); + toolingActions.setMaxEdgesPerTools(store, result.maxEdgesPerTools); toolingActions.updateToolsConfigurations(store, result.toolsConfiguration); toolingActions.updateMagazinePosConfigurations( store, diff --git a/Step/wwwroot/src/store/tooling.store.ts b/Step/wwwroot/src/store/tooling.store.ts index 9038a84b..bf897d0b 100644 --- a/Step/wwwroot/src/store/tooling.store.ts +++ b/Step/wwwroot/src/store/tooling.store.ts @@ -17,6 +17,7 @@ export interface ToolingStoreModel { edgesAdditionalParamsConfiguration: Map> edgesData: Array maxTools: number + maxEdgesPerTools: number } export interface ToolingActions { @@ -60,6 +61,7 @@ export interface ToolingActions { clearFamilies(context); setMaxTools(context, number); + setMaxEdgesPerTools(context, number); } export const toolingStore = { @@ -92,7 +94,8 @@ export const toolingStore = { edgesAdditionalParamsConfiguration: null, edgesData: [], _edgesData: new Map(), - maxTools: 0 + maxTools: 0, + maxEdgesPerTools: 0 } as ToolingStoreModel, mutations: { UpdateMagazine(store, model: server.MagazineModel[]) { @@ -223,9 +226,15 @@ export const toolingStore = { }, SetMaxTools(store,number){ store.maxTools = number; + }, + SetMaxEdgesPerTools(store, number){ + store.maxEdgesPerTools = number; } }, actions: { + setMaxEdgesPerTools(context, maxEdgesPerTools: number){ + context.commit("SetMaxEdgesPerTools", maxEdgesPerTools); + }, setMaxTools(context, maxTools: number){ context.commit("SetMaxTools", maxTools); },