Skip to content

Commit

Permalink
Merge branch 'release_23.1' into release_23.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Jul 25, 2024
2 parents 1b0b82f + 7a5598b commit dacdfcc
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions client/src/components/User/APIKey/APIKeyItem.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
<script setup>
import { library } from "@fortawesome/fontawesome-svg-core";
import { faEye, faEyeSlash, faKey, faTrash } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { getGalaxyInstance } from "app";
import CopyToClipboard from "components/CopyToClipboard";
import UtcDate from "components/UtcDate";
import { ref } from "vue";
import svc from "./model/service";
library.add(faEye, faEyeSlash, faKey, faTrash);
defineProps({
item: {
type: Object,
Expand Down Expand Up @@ -35,12 +40,7 @@ const deleteKey = () => {
<b-card title="Current API key">
<div class="d-flex justify-content-between w-100">
<div class="w-100">
<b-input-group
class="w-100"
@blur="hover = false"
@focus="hover = true"
@mouseover="hover = true"
@mouseleave="hover = false">
<b-input-group class="w-100">
<b-input-group-prepend>
<b-input-group-text>
<icon icon="key" />
Expand All @@ -57,6 +57,11 @@ const deleteKey = () => {
<b-input-group-text>
<CopyToClipboard message="Key was copied to clipboard" :text="item.key" title="Copy key" />
</b-input-group-text>

<b-button v-b-tooltip.hover title="Show/hide key" @click="hover = !hover">
<FontAwesomeIcon :icon="hover ? faEyeSlash : faEye" />
</b-button>

<b-button title="Delete api key" @click="toggleDeleteModal">
<icon icon="trash" />
</b-button>
Expand Down

0 comments on commit dacdfcc

Please sign in to comment.