feat: 🎸 Stop using model on template
Stop using model on template, so no more updating template while editing the form. Add link to documentation
This commit is contained in:
1 parent
b9c5ed0de3
commit
c82a8be1ed
6 files changed
+26
-3
No files matched your search
Whitespace-only changes.
@@ -0,0 +1,3 @@
|
||||
import Route from '@ember/routing/route';
|
||||
|
||||
export default class ScopesScopeCredentialStoresCredentialStoreIndexRoute extends Route {}
|
||||
@@ -1,5 +1,5 @@
|
||||
<h2>{{@model.displayName}}</h2>
|
||||
<p>{{@model.description}}</p>
|
||||
<h2>{{t 'resources.credential-store.title'}}</h2>
|
||||
<p>{{t 'resources.credential-store.description'}}</p>
|
||||
<Copyable
|
||||
@text={{@model.id}}
|
||||
@buttonText={{t 'actions.copy-to-clipboard'}}
|
||||
|
||||
@@ -6,8 +6,11 @@
|
||||
<page.header>
|
||||
<h2>
|
||||
{{t 'resources.credential-store.title_plural'}}
|
||||
<DocLink @doc='credential-stores' @iconSize='large' />
|
||||
</h2>
|
||||
{{t 'resources.credential-store.description'}}
|
||||
{{#if @model}}
|
||||
<p>{{t 'resources.credential-store.description'}}</p>
|
||||
{{/if}}
|
||||
</page.header>
|
||||
|
||||
{{!-- <page.actions>
|
||||
|
||||
@@ -55,6 +55,7 @@ module.exports = function (environment) {
|
||||
'host-set': '/host-sets',
|
||||
'host-set.new': '/host-sets/new',
|
||||
'host-set.add-hosts': '/host-sets/add-hosts',
|
||||
'credential-stores': '/credential-stores',
|
||||
host: '/hosts',
|
||||
'host.new': '/hosts/new',
|
||||
role: '/roles',
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { module, test } from 'qunit';
|
||||
import { setupTest } from 'ember-qunit';
|
||||
|
||||
module(
|
||||
'Unit | Route | scopes/scope/credential-stores/credential-store/index',
|
||||
function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
test('it exists', function (assert) {
|
||||
let route = this.owner.lookup(
|
||||
'route:scopes/scope/credential-stores/credential-store/index'
|
||||
);
|
||||
assert.ok(route);
|
||||
});
|
||||
}
|
||||
);
|
||||
Reference in new issue
Block a user