[NIFI-9746] NiFi Registy Bucket Side Nav no longer fails to open (#5831)

- all ViewCild queries are decorated with {static: true} which is needed because of new angular version
none of these ViewChild under *ng directives so they are available during init with static:true

Merged #5831 into main.
This commit is contained in:
Adam Kocsis 2022-03-03 23:45:35 +01:00 committed by GitHub
parent c91f543c2b
commit 6f5fda54e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 11 deletions

View File

@ -92,7 +92,7 @@ NfRegistryAddUser.annotations = [
new Component({
templateUrl: './nf-registry-add-user.html',
queries: {
newUserInput: new ViewChild('newUserInput')
newUserInput: new ViewChild('newUserInput', { static: true })
}
})
];

View File

@ -93,7 +93,7 @@ NfRegistryCreateNewGroup.annotations = [
new Component({
templateUrl: './nf-registry-create-new-group.html',
queries: {
createNewGroupInput: new ViewChild('createNewGroupInput')
createNewGroupInput: new ViewChild('createNewGroupInput', { static: true })
}
})
];

View File

@ -421,9 +421,9 @@ NfRegistryAddPolicyToBucket.annotations = [
new Component({
templateUrl: './nf-registry-add-policy-to-bucket.html',
queries: {
readCheckbox: new ViewChild('readCheckbox'),
writeCheckbox: new ViewChild('writeCheckbox'),
deleteCheckbox: new ViewChild('deleteCheckbox')
readCheckbox: new ViewChild('readCheckbox', { static: true }),
writeCheckbox: new ViewChild('writeCheckbox', { static: true }),
deleteCheckbox: new ViewChild('deleteCheckbox', { static: true })
}
})
];

View File

@ -88,8 +88,8 @@ NfRegistryCreateBucket.annotations = [
new Component({
templateUrl: './nf-registry-create-bucket.html',
queries: {
newBucketName: new ViewChild('newBucketName'),
newBucketDescription: new ViewChild('newBucketDescription')
newBucketName: new ViewChild('newBucketName', { static: true }),
newBucketDescription: new ViewChild('newBucketDescription', { static: true })
}
})
];

View File

@ -379,9 +379,9 @@ NfRegistryEditBucketPolicy.annotations = [
new Component({
templateUrl: './nf-registry-edit-bucket-policy.html',
queries: {
readCheckbox: new ViewChild('readCheckbox'),
writeCheckbox: new ViewChild('writeCheckbox'),
deleteCheckbox: new ViewChild('deleteCheckbox')
readCheckbox: new ViewChild('readCheckbox', { static: true }),
writeCheckbox: new ViewChild('writeCheckbox', { static: true }),
deleteCheckbox: new ViewChild('deleteCheckbox', { static: true })
}
})
];

View File

@ -107,7 +107,7 @@ NfRegistry.annotations = [
selector: 'nf-registry-app',
templateUrl: './nf-registry.html',
queries: {
sidenav: new ViewChild('sidenav')
sidenav: new ViewChild('sidenav', { static: true })
},
animations: [nfRegistryAnimations.flyInOutAnimation]
})