Skip to content

Commit

Permalink
frontend: fix updating license by base64 encoding secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Alec Merdler committed Sep 20, 2017
1 parent fff7ebb commit 064a3e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.env
.idea
.vscode
/bin
/gopath
/Godeps/_workspace/src/github.com/coreos-inc/bridge
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ConfigureYamlFieldModal extends PromiseComponent {
.then((resource) => {

let value = _.get(resource, this.props.path);
if (this.props.k8sQuery.kind === 'secret') {
if (this.props.k8sQuery.kind === 'Secret') {
value = window.atob(value);
}
this.setState({
Expand Down Expand Up @@ -71,7 +71,7 @@ class ConfigureYamlFieldModal extends PromiseComponent {
}

let value = this.state.value;
if (this.props.k8sQuery.kind === 'secret') {
if (this.props.k8sQuery.kind === 'Secret') {
value = window.btoa(value);
}

Expand Down

0 comments on commit 064a3e6

Please sign in to comment.