mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 00:08:44 -03:30
Merge pull request #2626 from jakemcdermott/fix-multicred
always recompile multicredential lists Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -44,17 +44,24 @@ function MultiCredentialModal(
|
|||||||
selectedCredentials: '=',
|
selectedCredentials: '=',
|
||||||
},
|
},
|
||||||
link: (scope, element, attrs, controllers) => {
|
link: (scope, element, attrs, controllers) => {
|
||||||
const compiledList = $compile(listHtml)(scope);
|
|
||||||
const compiledVaultList = $compile(vaultHtml)(scope);
|
|
||||||
|
|
||||||
const modalBodyElement = $('#multi-credential-modal-body');
|
const modalBodyElement = $('#multi-credential-modal-body');
|
||||||
const modalElement = $('#multi-credential-modal');
|
const modalElement = $('#multi-credential-modal');
|
||||||
|
|
||||||
scope.showModal = () => modalElement.modal('show');
|
scope.showModal = () => modalElement.modal('show');
|
||||||
scope.hideModal = () => modalElement.modal('hide');
|
scope.hideModal = () => modalElement.modal('hide');
|
||||||
|
|
||||||
scope.createList = () => modalBodyElement.append(compiledList);
|
scope.createList = () => {
|
||||||
scope.createVaultList = () => modalBodyElement.append(compiledVaultList);
|
const compiledList = $compile(listHtml)(scope);
|
||||||
|
|
||||||
|
modalBodyElement.append(compiledList);
|
||||||
|
};
|
||||||
|
|
||||||
|
scope.createVaultList = () => {
|
||||||
|
const compiledVaultList = $compile(vaultHtml)(scope);
|
||||||
|
|
||||||
|
modalBodyElement.append(compiledVaultList);
|
||||||
|
};
|
||||||
|
|
||||||
scope.destroyList = () => modalBodyElement.empty();
|
scope.destroyList = () => modalBodyElement.empty();
|
||||||
|
|
||||||
modalElement.on('hidden.bs.modal', () => {
|
modalElement.on('hidden.bs.modal', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user