ddf8c20219
* add menu-loader component to show menu loading button when the model relationship isPending * list what keys we've got in api-path error * fix spacing issue on error flash * add an action on list-controller that bubbles to the list-route mixin to refresh the route * empty store when creating scopes * don't delete _requestQuery in the loop, do it after * add scope deletion from the scope list * add deleteRecord to kmip adapters * add model-wrap component * delete role from detail page and list * add revoke credentials functionality * fix comment * treat all operations fields specially on kmip roles * adjust kmip role edit form for new fields * fix api-path test * update document blocks for menu-loader and model-wrap components
23 lines
596 B
JavaScript
23 lines
596 B
JavaScript
/**
|
|
* @module MenuLoader
|
|
* MenuLoader components are used to show a loading state when fetching data is triggered by opening a
|
|
* popup menu.
|
|
*
|
|
* @example
|
|
* ```js
|
|
* <MenuLoader @loadingParam={model.updatePath.isPending} />
|
|
* ```
|
|
*
|
|
* @param loadingParam {Boolean} - If the value of this param is true, the loading state will be rendered,
|
|
* else the component will yield.
|
|
*/
|
|
import Component from '@ember/component';
|
|
import layout from '../templates/components/menu-loader';
|
|
|
|
export default Component.extend({
|
|
tagName: 'li',
|
|
classNames: 'action',
|
|
layout,
|
|
loadingParam: null,
|
|
});
|