1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00

ui: Copy build logs error fix (PROJQUAY-3405) (#1201)

Currently when viewing the build logs and selecting `Copy Logs` the copy to clipboard will fail. This is because the content of the logs was being passed to the copy-clipboard function when it requires the ID of the element containing the text to copy. This passes the selector of the ID of the element containing the build logs.
This commit is contained in:
Brandon Caton
2022-03-28 09:26:38 -04:00
committed by GitHub
parent de0d97640f
commit e67ea047c4
3 changed files with 3 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
<div class="build-logs-view-element" ng-class="useTimestamps ? 'with-timestamps' : ''">
<span ng-show="logEntries">
<button id="copyButton" class="btn btn-primary copy-button"
clipboard-copy="#{{ ::buildLogsText }}">
clipboard-copy="#build-logs">
<i class="fa fa-clipboard"></i>Copy Logs
</button>
</span>

View File

@@ -12,6 +12,7 @@
<div class="resource-view" resource="buildResource" error-message="'Cannot find or load build'"
ng-show="buildId">
<div class="build-logs-view"
id="build-logs"
build="build"
use-timestamps="showLogTimestamps"
is-super-user="true"

View File

@@ -55,6 +55,7 @@
<!-- Build Logs -->
<div class="build-logs-view"
id="build-logs"
build="originalBuild"
use-timestamps="showLogTimestamps"
build-updated="setUpdatedBuild(build)"