- {{! template-lint-configure no-curly-component-invocation "warn" }}
- {{! template-lint-configure no-link-to-positional-params "warn" }}
- {{#link-to
- "vault.cluster.clients.history"
- current-when="vault.cluster.clients.history"
+
Client count
- {{/link-to}}
- {{! template-lint-configure no-curly-component-invocation "on" }}
- {{! template-lint-configure no-link-to-positional-params "on" }}
+
{{/if}}
diff --git a/ui/app/templates/vault/cluster/access/leases/list.hbs b/ui/app/templates/vault/cluster/access/leases/list.hbs
index d1e4ccc2d..d6894bbaa 100644
--- a/ui/app/templates/vault/cluster/access/leases/list.hbs
+++ b/ui/app/templates/vault/cluster/access/leases/list.hbs
@@ -105,6 +105,6 @@
@page={{this.model.meta.currentPage}}
@lastPage={{this.model.meta.lastPage}}
@link={{concat "vault.cluster.access.leases.list" (unless this.baseKey.id "-root")}}
- @model={{compact (array (if this.baseKey.id this.baseKey.id))}}
+ @models={{compact (array (if this.baseKey.id this.baseKey.id))}}
/>
{{/if}}
\ No newline at end of file
diff --git a/ui/app/templates/vault/cluster/secrets/backend/error.hbs b/ui/app/templates/vault/cluster/secrets/backend/error.hbs
index b381eec62..504403a90 100644
--- a/ui/app/templates/vault/cluster/secrets/backend/error.hbs
+++ b/ui/app/templates/vault/cluster/secrets/backend/error.hbs
@@ -3,16 +3,10 @@
- {{! refactor to use @route and @model args and convert to angle brackets }}
- {{! template-lint-configure no-curly-component-invocation "warn" }}
- {{#link-to params=@cancelLinkParams class="button"}}
+
{{or @cancelButtonText "Cancel"}}
- {{/link-to}}
+
{{/if}}
{{#if @onCancel}}
diff --git a/ui/lib/core/addon/templates/components/list-item.hbs b/ui/lib/core/addon/templates/components/list-item.hbs
index b7e38b007..ca5c0153b 100644
--- a/ui/lib/core/addon/templates/components/list-item.hbs
+++ b/ui/lib/core/addon/templates/components/list-item.hbs
@@ -10,14 +10,13 @@
>
- {{! refactor to use @route and @model args and convert to angle brackets }}
- {{! template-lint-configure no-curly-component-invocation "warn" }}
- {{#link-to
- params=this.linkParams
+
{{yield (hash content=(component "list-item/content"))}}
- {{/link-to}}
+
diff --git a/ui/lib/core/addon/templates/components/list-pagination.hbs b/ui/lib/core/addon/templates/components/list-pagination.hbs
index 34c7be942..73068d0e8 100644
--- a/ui/lib/core/addon/templates/components/list-pagination.hbs
+++ b/ui/lib/core/addon/templates/components/list-pagination.hbs
@@ -1,86 +1,89 @@
-{{! warn is not working! }}
-{{! template-lint-disable no-curly-component-invocation }}
-{{#with (compact (flatten (array this.link this.model))) as |params|}}
-
\ No newline at end of file
diff --git a/ui/lib/kmip/addon/components/edit-form-kmip-role.js b/ui/lib/kmip/addon/components/edit-form-kmip-role.js
index 45463e82f..3de03f8f8 100644
--- a/ui/lib/kmip/addon/components/edit-form-kmip-role.js
+++ b/ui/lib/kmip/addon/components/edit-form-kmip-role.js
@@ -1,10 +1,17 @@
import EditForm from 'core/components/edit-form';
+import { computed } from '@ember/object';
import layout from '../templates/components/edit-form-kmip-role';
export default EditForm.extend({
layout,
model: null,
+ cancelLink: computed('cancelLinkParams.[]', function () {
+ if (!Array.isArray(this.cancelLinkParams) || !this.cancelLinkParams.length) return;
+ const [route, ...models] = this.cancelLinkParams;
+ return { route, models };
+ }),
+
init() {
this._super(...arguments);
diff --git a/ui/lib/kmip/addon/templates/components/edit-form-kmip-role.hbs b/ui/lib/kmip/addon/templates/components/edit-form-kmip-role.hbs
index 68a9eac08..faff4b8d8 100644
--- a/ui/lib/kmip/addon/templates/components/edit-form-kmip-role.hbs
+++ b/ui/lib/kmip/addon/templates/components/edit-form-kmip-role.hbs
@@ -90,13 +90,16 @@
{{this.saveButtonText}}
- {{#if this.cancelLinkParams}}
+ {{#if this.cancelLink}}
- {{! refactor to use @route and @model args and convert to angle brackets }}
- {{! template-lint-configure no-curly-component-invocation "warn" }}
- {{#link-to params=this.cancelLinkParams class="button" data-test-edit-form-cancel="true"}}
+
Cancel
- {{/link-to}}
+
{{/if}}
diff --git a/ui/tests/unit/services/permissions-test.js b/ui/tests/unit/services/permissions-test.js
index 06c8680ae..383ea2ebb 100644
--- a/ui/tests/unit/services/permissions-test.js
+++ b/ui/tests/unit/services/permissions-test.js
@@ -139,7 +139,7 @@ module('Unit | Service | permissions', function (hooks) {
},
};
service.set('exactPaths', policyPaths);
- assert.equal(service.navPathParams('policies'), 'rgp');
+ assert.equal(service.navPathParams('policies').models[0], 'rgp');
});
test('returns the first allowed nav route for access', function (assert) {
@@ -152,7 +152,7 @@ module('Unit | Service | permissions', function (hooks) {
capabilities: ['read'],
},
};
- const expected = ['vault.cluster.access.identity', 'entities'];
+ const expected = { route: 'vault.cluster.access.identity', models: ['entities'] };
service.set('exactPaths', accessPaths);
assert.deepEqual(service.navPathParams('access'), expected);
});