open-vault/ui/lib/core/addon/components/toolbar-download-button.js

22 lines
548 B
JavaScript
Raw Normal View History

/**
* @module ToolbarSecretLink
* `ToolbarSecretLink` styles SecretLink for the Toolbar.
* It should only be used inside of `Toolbar`.
*
* @example
* ```js
* <Toolbar>
* <ToolbarActions>
* <ToolbarDownloadButton @actionText="Download policy" @extension={{if (eq policyType "acl") model.format "sentinel"}} @filename={{model.name}} @data={{model.policy}} />
* </ToolbarActions>
* </Toolbar>
* ```
*
*/
2019-02-14 16:04:46 +00:00
import DownloadButton from './download-button';
export default DownloadButton.extend({
2019-04-29 15:19:03 +00:00
classNames: ['toolbar-link'],
2019-02-14 16:04:46 +00:00
});