@@ -145,19 +133,18 @@
Info
-
+
Below is the generated OTP. This will be used to encode the generated Operation Token. Make sure to save
this, as you will need it later to decode the Operation Token.
+
+
+ One Time Password (otp)
+
+
+
-
-
-
- One Time Password (otp)
-
- {{this.otp}}
-
{{/if}}
{{#if (has-block)}}
{{yield}}
diff --git a/ui/lib/kmip/addon/templates/credentials/show.hbs b/ui/lib/kmip/addon/templates/credentials/show.hbs
index 4599a4d29455..e3b71e0332cb 100644
--- a/ui/lib/kmip/addon/templates/credentials/show.hbs
+++ b/ui/lib/kmip/addon/templates/credentials/show.hbs
@@ -34,7 +34,7 @@
@@ -43,15 +43,17 @@
-
-
-
- Warning
- You will not be able to access the private key later, so please copy the information below.
-
-
-
-
+ {{#if this.model.privateKey}}
+
+
+
+ Warning
+ You will not be able to access the private key later, so please copy the information below.
+
+
+
+
+ {{/if}}
diff --git a/ui/package.json b/ui/package.json
index 69a2bd546e54..b85b1a85531e 100644
--- a/ui/package.json
+++ b/ui/package.json
@@ -125,7 +125,6 @@
"ember-cli": "~4.12.1",
"ember-cli-autoprefixer": "^0.8.1",
"ember-cli-babel": "^7.26.11",
- "ember-cli-clipboard": "0.16.0",
"ember-cli-content-security-policy": "2.0.3",
"ember-cli-dependency-checker": "^3.3.1",
"ember-cli-deprecation-workflow": "^2.1.0",
diff --git a/ui/tests/integration/components/hover-copy-button-test.js b/ui/tests/integration/components/hover-copy-button-test.js
deleted file mode 100644
index 818987890b7c..000000000000
--- a/ui/tests/integration/components/hover-copy-button-test.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/**
- * Copyright (c) HashiCorp, Inc.
- * SPDX-License-Identifier: BUSL-1.1
- */
-
-import { module, test } from 'qunit';
-import { setupRenderingTest } from 'ember-qunit';
-import { render, settled } from '@ember/test-helpers';
-import { create } from 'ember-cli-page-object';
-import hbs from 'htmlbars-inline-precompile';
-import copyButton from 'vault/tests/pages/components/hover-copy-button';
-const component = create(copyButton);
-
-module('Integration | Component | hover copy button', function (hooks) {
- setupRenderingTest(hooks);
-
- // ember-cli-clipboard helpers don't like the new style
- test('it shows success message in tooltip', async function (assert) {
- await render(hbs`
-
-
-
- `);
- await component.focusContainer();
- await settled();
- assert.ok(component.buttonIsVisible);
- await component.mouseEnter();
- await settled();
- assert.strictEqual(component.tooltipText, 'Copy', 'shows copy');
- });
-
- test('it has the correct class when alwaysShow is true', async function (assert) {
- await render(hbs`
-
- `);
- await render(hbs`{{hover-copy-button alwaysShow=true copyValue=this.copyValue}}`);
- assert.ok(component.buttonIsVisible);
- assert.ok(component.wrapperClass.includes('hover-copy-button-static'));
- });
-});
diff --git a/ui/tests/pages/components/hover-copy-button.js b/ui/tests/pages/components/hover-copy-button.js
deleted file mode 100644
index 5cb5942dfa52..000000000000
--- a/ui/tests/pages/components/hover-copy-button.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * Copyright (c) HashiCorp, Inc.
- * SPDX-License-Identifier: BUSL-1.1
- */
-
-import { attribute, clickable, isVisible, focusable, text } from 'ember-cli-page-object';
-import { triggerEvent, focus } from '@ember/test-helpers';
-
-export default {
- async focusContainer() {
- await focus('.has-copy-button');
- },
- tooltipText: text('[data-test-hover-copy-tooltip-text]', {
- testContainer: '#ember-testing',
- }),
- wrapperClass: attribute('class', '[data-test-hover-copy]'),
- buttonIsVisible: isVisible('[data-test-hover-copy-button]'),
- click: clickable('[data-test-hover-copy-button]'),
- focus: focusable('[data-test-hover-copy-button]'),
-
- async mouseEnter() {
- await triggerEvent('[data-test-tooltip-trigger]', 'mouseenter');
- },
-};
diff --git a/ui/yarn.lock b/ui/yarn.lock
index 2dd4447f8233..7e3f68c2d8fe 100644
--- a/ui/yarn.lock
+++ b/ui/yarn.lock
@@ -4392,29 +4392,29 @@ __metadata:
languageName: node
linkType: hard
-"@ember/render-modifiers@npm:^1.0.2 || ^2.0.0, @ember/render-modifiers@npm:^2.0.2, @ember/render-modifiers@npm:^2.0.4":
- version: 2.0.4
- resolution: "@ember/render-modifiers@npm:2.0.4"
+"@ember/render-modifiers@npm:^2.0.0, @ember/render-modifiers@npm:^2.0.5":
+ version: 2.0.5
+ resolution: "@ember/render-modifiers@npm:2.0.5"
dependencies:
"@embroider/macros": ^1.0.0
ember-cli-babel: ^7.26.11
ember-modifier-manager-polyfill: ^1.2.0
peerDependencies:
- ember-source: ^3.8 || 4
- checksum: 6186a013349273f9eb0339a5b2ab7ccc7b9e6429d83b8cabba2842dfc35bd4b77b66979c2f2c25b062a7cdd359c6a500df27154880ac5f04a3ffa52ca6e343d6
+ ember-source: ^3.8 || ^4.0.0
+ checksum: ebeb4d573968f46490f8f5618b9d85f2c7ca39cee5b854bb497a3aee7dee3d710ab02b9677df30f1e2a484e712dd89171045118da563d9d9a6c316ccdccc2671
languageName: node
linkType: hard
-"@ember/render-modifiers@npm:^2.0.0, @ember/render-modifiers@npm:^2.0.5":
- version: 2.0.5
- resolution: "@ember/render-modifiers@npm:2.0.5"
+"@ember/render-modifiers@npm:^2.0.2, @ember/render-modifiers@npm:^2.0.4":
+ version: 2.0.4
+ resolution: "@ember/render-modifiers@npm:2.0.4"
dependencies:
"@embroider/macros": ^1.0.0
ember-cli-babel: ^7.26.11
ember-modifier-manager-polyfill: ^1.2.0
peerDependencies:
- ember-source: ^3.8 || ^4.0.0
- checksum: ebeb4d573968f46490f8f5618b9d85f2c7ca39cee5b854bb497a3aee7dee3d710ab02b9677df30f1e2a484e712dd89171045118da563d9d9a6c316ccdccc2671
+ ember-source: ^3.8 || 4
+ checksum: 6186a013349273f9eb0339a5b2ab7ccc7b9e6429d83b8cabba2842dfc35bd4b77b66979c2f2c25b062a7cdd359c6a500df27154880ac5f04a3ffa52ca6e343d6
languageName: node
linkType: hard
@@ -10470,7 +10470,7 @@ __metadata:
languageName: node
linkType: hard
-"clipboard@npm:^2.0.11, clipboard@npm:^2.0.6":
+"clipboard@npm:^2.0.11":
version: 2.0.11
resolution: "clipboard@npm:2.0.11"
dependencies:
@@ -12425,43 +12425,6 @@ __metadata:
languageName: node
linkType: hard
-"ember-auto-import@npm:^1.11.3":
- version: 1.12.0
- resolution: "ember-auto-import@npm:1.12.0"
- dependencies:
- "@babel/core": ^7.1.6
- "@babel/preset-env": ^7.10.2
- "@babel/traverse": ^7.1.6
- "@babel/types": ^7.1.6
- "@embroider/core": ^0.33.0
- babel-core: ^6.26.3
- babel-loader: ^8.0.6
- babel-plugin-syntax-dynamic-import: ^6.18.0
- babylon: ^6.18.0
- broccoli-debug: ^0.6.4
- broccoli-node-api: ^1.7.0
- broccoli-plugin: ^4.0.0
- broccoli-source: ^3.0.0
- debug: ^3.1.0
- ember-cli-babel: ^7.0.0
- enhanced-resolve: ^4.0.0
- fs-extra: ^6.0.1
- fs-tree-diff: ^2.0.0
- handlebars: ^4.3.1
- js-string-escape: ^1.0.1
- lodash: ^4.17.19
- mkdirp: ^0.5.1
- resolve-package-path: ^3.1.0
- rimraf: ^2.6.2
- semver: ^7.3.4
- symlink-or-copy: ^1.2.0
- typescript-memoize: ^1.0.0-alpha.3
- walk-sync: ^0.3.3
- webpack: ^4.43.0
- checksum: 689de6088854855c7eb50d882a81fc9ee3efd1671ddd8aea35a7d6ef0db8e08d211d156b63390da4fd98518d32ad2a3f9ed9be6f25810311a9011604f10b3c85
- languageName: node
- linkType: hard
-
"ember-auto-import@npm:^1.12.0":
version: 1.12.1
resolution: "ember-auto-import@npm:1.12.1"
@@ -12712,19 +12675,6 @@ __metadata:
languageName: node
linkType: hard
-"ember-cli-clipboard@npm:0.16.0":
- version: 0.16.0
- resolution: "ember-cli-clipboard@npm:0.16.0"
- dependencies:
- "@ember/render-modifiers": ^1.0.2 || ^2.0.0
- clipboard: ^2.0.6
- ember-auto-import: ^1.11.3
- ember-cli-babel: ^7.26.6
- ember-cli-htmlbars: ^5.7.1
- checksum: dea292fb8116d657cc2ac00695c7cdfc6fd71db3ff444b8418a3bdb641165d632e4281e06eb6fabfb82a58eb3a3ed5ea3e861539961501bb141725df7dc75604
- languageName: node
- linkType: hard
-
"ember-cli-clipboard@npm:^1.0.0":
version: 1.0.0
resolution: "ember-cli-clipboard@npm:1.0.0"
@@ -26029,7 +25979,6 @@ __metadata:
ember-cli: ~4.12.1
ember-cli-autoprefixer: ^0.8.1
ember-cli-babel: ^7.26.11
- ember-cli-clipboard: 0.16.0
ember-cli-content-security-policy: 2.0.3
ember-cli-dependency-checker: ^3.3.1
ember-cli-deprecation-workflow: ^2.1.0