Sha256: 096dbe0d5e0b05a677371738b07aaff4611801d193954c47feb6f24d54654c81

Contents?: true

Size: 801 Bytes

Versions: 236

Compression:

Stored size: 801 Bytes

Contents

/**
 * @ngdoc directive
 * @name Bastion.components.directive:bstSaveControl
 *
 * @description
 *   Simple directive for encapsulating create and cancel buttons. This includes states
 *   for disabling buttons and setting a visual working state.
 *
 * @example
 *   <pre>
 *     <div bst-save-control
 *          on-cancel="closeItem()"
 *          on-save="save(product)"
 *          invalid="productForm.$invalid">
 *     </div>
 */
angular.module('Bastion.components').directive('bstSaveControl', function () {
    return {
        restrict: 'AE',
        replace: true,
        templateUrl: 'components/views/bst-save-control.html',
        scope: {
            handleSave: '&onSave',
            handleCancel: '&onCancel',
            invalid: '=',
            working: '='
        }
    };
});

Version data entries

236 entries across 236 versions & 2 rubygems

Version Path
katello-4.14.2 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.15.0 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.15.0.rc2 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.15.0.rc1 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.14.1 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.14.0 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.14.0.rc3 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.14.0.rc2 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.14.0.rc1.1 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.14.0.rc1 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.13.1 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.13.0 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.12.1 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.13.0.rc1 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.12.0 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.12.0.rc3 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.12.0.rc2 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.12.0.rc1 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.11.1 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js
katello-4.11.0 engines/bastion/app/assets/javascripts/bastion/components/bst-save-control.directive.js