From 6dee52169e6db4b700570eddae2e321d7a9225b6 Mon Sep 17 00:00:00 2001 From: Caleb Ellis Date: Thu, 9 Apr 2020 16:27:43 +1000 Subject: [PATCH] Update pod details page to new design. --- legacy/src/app/controllers/pod_details.js | 11 +++++------ legacy/src/app/partials/pod-details.html | 8 ++++---- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/legacy/src/app/controllers/pod_details.js b/legacy/src/app/controllers/pod_details.js index 8af3a3e05b..4e14d97509 100644 --- a/legacy/src/app/controllers/pod_details.js +++ b/legacy/src/app/controllers/pod_details.js @@ -25,8 +25,7 @@ function PodDetailsController( FabricsManager, SpacesManager, ValidationService, - $log, - $document + $log ) { // Checks if on RSD page $scope.onRSDSection = PodsManager.onRSDSection; @@ -426,12 +425,12 @@ function PodDetailsController( $scope.copyToClipboard = function($event) { var clipboardParent = $event.currentTarget.previousSibling; var clipboardValue = clipboardParent.previousSibling.value; - var el = $document.createElement("textarea"); + var el = document.createElement("textarea"); el.value = clipboardValue; - $document.body.appendChild(el); + document.body.appendChild(el); el.select(); - $document.execCommand("copy"); - $document.body.removeChild(el); + document.execCommand("copy"); + document.body.removeChild(el); }; // Called to cancel composition. diff --git a/legacy/src/app/partials/pod-details.html b/legacy/src/app/partials/pod-details.html index 94049ece17..27371ebb5d 100644 --- a/legacy/src/app/partials/pod-details.html +++ b/legacy/src/app/partials/pod-details.html @@ -65,9 +65,8 @@

Compose machine

- - - + +
@@ -434,7 +433,8 @@

Storage configuration

- + +