Add support for writing client CAs when access-lists are updated

This commit adds the basic support necessary to produce the combined
client CA files when certificates are updated.
This commit is contained in:
Will Rouesnel
2023-05-27 02:21:10 +10:00
parent e5bb50c164
commit fb766d14e9
3 changed files with 78 additions and 9 deletions

View File

@ -73,7 +73,7 @@ module.exports = Mn.View.extend({
e.preventDefault();
let query = this.ui.query.val();
this.fetch(['owner', 'items', 'clients', 'clientcas'], query)
this.fetch(['owner', 'items', 'clients', 'clientcas.certificate'], query)
.then(response => this.showData(response))
.catch(err => {
this.showError(err);
@ -88,7 +88,7 @@ module.exports = Mn.View.extend({
onRender: function () {
let view = this;
view.fetch(['owner', 'items', 'clients', 'clientcas'])
view.fetch(['owner', 'items', 'clients', 'clientcas.certificate'])
.then(response => {
if (!view.isDestroyed()) {
if (response && response.length) {