2021-06-07 17:57:36 +00:00
|
|
|
import Component from '@glimmer/component';
|
|
|
|
import { action } from '@ember/object';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @module ConfigureSshSecretComponent
|
|
|
|
*
|
|
|
|
* @example
|
|
|
|
* ```js
|
|
|
|
* <ConfigureSshSecret
|
|
|
|
@model={{model}}
|
|
|
|
@configured={{configured}}
|
|
|
|
@saveConfig={{action "saveConfig"}} />
|
|
|
|
* ```
|
|
|
|
*
|
|
|
|
* @param {string} model - ssh secret engine model
|
|
|
|
* @param {Function} saveConfig - parent action which updates the configuration
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
export default class ConfigureSshSecretComponent extends Component {
|
|
|
|
@action
|
2022-10-18 15:46:02 +00:00
|
|
|
saveConfig(data, event) {
|
|
|
|
event.preventDefault();
|
2021-06-07 17:57:36 +00:00
|
|
|
this.args.saveConfig(data);
|
|
|
|
}
|
|
|
|
}
|