Skip to content

Commit

Permalink
Fix copy button import, missing import and array destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
wenincode committed Oct 16, 2023
1 parent ef39122 commit c77d8a0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ui/packages/consul-ui/app/modifiers/with-copyable.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import Modifier from 'ember-modifier';
import { inject as service } from '@ember/service';
import { runInDebug } from '@ember/debug';
import { registerDestructor } from '@ember/destroyable';

const typeAssertion = (type, value, withDefault) => {
return typeof value === type ? value : withDefault;
Expand Down Expand Up @@ -54,7 +55,7 @@ export default class WithCopyableModifier extends Modifier {
registerDestructor(this, cleanup);
}

modify(element, [value], namedArgs) {
modify(element, value, namedArgs) {
this.element = element;
this.disconnect();
this.connect(value, namedArgs);
Expand Down
2 changes: 1 addition & 1 deletion ui/packages/consul-ui/app/styles/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@import 'consul-ui/components/code-editor';
@import 'consul-ui/components/composite-row';
@import 'consul-ui/components/confirmation-dialog';
@import 'consul-ui/components/copy-button';
@import 'consul-ui/components/consul-copy-button';
@import 'consul-ui/components/definition-table';
@import 'consul-ui/components/disclosure-menu';
@import 'consul-ui/components/display-toggle';
Expand Down
7 changes: 6 additions & 1 deletion ui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6255,7 +6255,7 @@ ember-auto-import@^2.5.0, ember-auto-import@^2.6.3:
typescript-memoize "^1.0.0-alpha.3"
walk-sync "^3.0.0"

ember-basic-dropdown@^3.0.21:
ember-basic-dropdown@3.0.21, ember-basic-dropdown@^3.0.21:
version "3.0.21"
resolved "https://registry.yarnpkg.com/ember-basic-dropdown/-/ember-basic-dropdown-3.0.21.tgz#5711d071966919c9578d2d5ac2c6dcadbb5ea0e0"
integrity sha512-Wu9hJWyqorKo+ZT2PMSIO1BxAeAdaiIC2IjSic0+HcKjmMU47botvG0xbxlprimOWaS9vM+nHat6Pt3xPvcB0A==
Expand Down Expand Up @@ -15629,6 +15629,11 @@ xmlchars@^2.2.0:
resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb"
integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==

xmlhttprequest-ssl@^1.6.3:
version "1.6.3"
resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.6.3.tgz#03b713873b01659dfa2c1c5d056065b27ddc2de6"
integrity sha512-3XfeQE/wNkvrIktn2Kf0869fC0BN6UpydVasGIeSm2B1Llihf7/0UfZM+eCkOw3P7bP4+qPgqhm7ZoxuJtFU0Q==

xtend@^4.0.0, xtend@^4.0.2, xtend@~4.0.1:
version "4.0.2"
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"
Expand Down

0 comments on commit c77d8a0

Please sign in to comment.