Skip to content

Commit

Permalink
feat(kayenta): expose option to disable ui editing of canary configs
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenlandrydd committed May 14, 2024
1 parent 62e5b96 commit f6a03c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spinnaker/kayenta",
"version": "2.1.0",
"version": "2.2.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions src/kayenta/canary.settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface ICanarySettings {
atlasGraphBaseUrl: string;
templatesEnabled: boolean;
manualAnalysisEnabled: boolean;
disableConfigEdit: boolean;
legacySiteLocalFieldsEnabled: boolean; // legacy fields for backwards-compat with old systems, no long term support planned
}

Expand Down
2 changes: 1 addition & 1 deletion src/kayenta/reducers/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const configJsonModalTabState = handleActions(
ConfigJsonModalTabState.Edit,
);

const disableConfigEdit = handleActions<boolean>({}, false);
const disableConfigEdit = handleActions<boolean>({}, CanarySettings.disableConfigEdit ?? false);

export const app: Reducer<IAppState> = combineReducers<IAppState>({
executionsCount,
Expand Down

0 comments on commit f6a03c4

Please sign in to comment.