mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-09-07 06:19:00 +00:00
add enabled property to API
This commit is contained in:
@@ -11,6 +11,7 @@ export type ConfigState = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type ApiConfig = {
|
export type ApiConfig = {
|
||||||
|
enabled: boolean;
|
||||||
port: number;
|
port: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -107,7 +107,10 @@ export class ConfigService {
|
|||||||
setEmptyConfig() {
|
setEmptyConfig() {
|
||||||
console.log('Setting empty config');
|
console.log('Setting empty config');
|
||||||
this.updateCurrentlyShownConfig({
|
this.updateCurrentlyShownConfig({
|
||||||
api: { port: 8080 },
|
api: {
|
||||||
|
enabled: true,
|
||||||
|
port: 8080
|
||||||
|
},
|
||||||
modules: [],
|
modules: [],
|
||||||
routes: [],
|
routes: [],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user