mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 14:24:39 +00:00
8b002d086a
This commit addresses some left over admin partition FIXMEs 1. Adds Partition correctly to Service Instances 2. Converts non-important 'we can do this later' FIXMEs to TODOs 3. Removes some FIXMEs that I've double checked and addressed. Most of the remaining FIXMEs I'm waiting on responses to questions from the consul core folks for. I'll address those in a separate PR.
37 lines
1.2 KiB
JavaScript
37 lines
1.2 KiB
JavaScript
import Component from '@ember/component';
|
|
|
|
import chart from './chart.xstate';
|
|
export default Component.extend({
|
|
onchange: function() {},
|
|
init: function() {
|
|
this._super(...arguments);
|
|
this.chart = chart;
|
|
},
|
|
actions: {
|
|
isSecret: function() {
|
|
return this.type === 'secret';
|
|
},
|
|
change: function(e) {
|
|
e.data.toJSON = function() {
|
|
return {
|
|
AccessorID: this.AccessorID,
|
|
// TODO: In the past we've always ignored the SecretID returned
|
|
// from the server and used what the user typed in instead, now
|
|
// as we don't know the SecretID when we use SSO we use the SecretID
|
|
// in the response
|
|
SecretID: this.SecretID,
|
|
Namespace: this.Namespace,
|
|
...{
|
|
AuthMethod: typeof this.AuthMethod !== 'undefined' ? this.AuthMethod : undefined,
|
|
// TODO: We should be able to only set namespaces if they are enabled
|
|
// but we might be testing for nspaces everywhere
|
|
// Namespace: typeof this.Namespace !== 'undefined' ? this.Namespace : undefined
|
|
},
|
|
};
|
|
};
|
|
// TODO: We should probably put the component into idle state
|
|
this.onchange(e);
|
|
},
|
|
},
|
|
});
|