refactor: 💡 migrate anonymous and link-button to nested

This commit is contained in:
Randall Morey committed 2020-09-24 17:54:55 -04:00
1 parent 22ed3507fc
commit 5c2aacffe6
7 files changed
+2 -17

No files matched your search

@@ -1,5 +1,5 @@
import Component from '@ember/component';
import layout from '../../templates/components/rose/anonymous';
import layout from './index';
/**
* An otherwise empty component that renders a block. Used only by components
@@ -1,5 +1,5 @@
import LinkComponent from '@ember/routing/link-component';
import layout from '../../templates/components/rose/link-button';
import layout from './index';
import { computed } from '@ember/object';
/**
@@ -1,15 +0,0 @@
import Mixin from '@ember/object/mixin';
import { v1 } from 'ember-uuid';
/**
* Add this mixin to components for an auto-generated ID.
*/
export default Mixin.create({
/**
* Generates an ID for this component and assigns it to `this.id`.
*/
init() {
this.id = `component-${v1()}`;
return this._super(...arguments);
},
});