mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-14 15:58:38 -05:00
Update models and components for dynamic input list component
This commit is contained in:
@@ -17,12 +17,14 @@ function atActionController ($state) {
|
||||
form = _form_;
|
||||
scope = _scope_;
|
||||
|
||||
scope.config = scope.config || {};
|
||||
scope.config.state = scope.config.state || {};
|
||||
|
||||
state = scope.config.state;
|
||||
|
||||
scope.form = form.use('action', state);
|
||||
|
||||
switch(scope.config.type) {
|
||||
switch(scope.type) {
|
||||
case 'cancel':
|
||||
vm.setCancelDefaults();
|
||||
break;
|
||||
@@ -61,7 +63,7 @@ function atAction (pathService) {
|
||||
controllerAs: 'vm',
|
||||
link,
|
||||
scope: {
|
||||
config: '='
|
||||
type: '@'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<button class="btn at-Button{{ fill }}--{{ color }}"
|
||||
ng-disabled="config.type !== 'cancel' && !form.state.isValid"
|
||||
ng-disabled="type !== 'cancel' && !form.state.isValid"
|
||||
ng-class="{ 'at-Button--disabled': form.disabled }" ng-click="action()">
|
||||
{{::text}}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user