refactor: 💡 migrate anonymous and link-button to nested
This commit is contained in:
7 files changed
+2
-17
No files matched your search
File renamed without changes.
+1
-1
@@ -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
|
||||
File renamed without changes.
File renamed without changes.
+1
-1
@@ -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';
|
||||
|
||||
/**
|
||||
File renamed without changes.
@@ -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);
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user