open-vault/ui/app/components/configure-ssh-secret.js
Arnav Palnitkar a517fe35a1
Update secret backend partial to components (#11768)
* Update secret backend partial to components

* Added jsdoc to components
2021-06-07 10:57:36 -07:00

25 lines
567 B
JavaScript

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
saveConfig(data) {
this.args.saveConfig(data);
}
}