Skip to content

Commit

Permalink
Merge pull request #614 from threefoldtech/development_contract_list_…
Browse files Browse the repository at this point in the history
…action

Edit action in contract list to be eye icon
  • Loading branch information
zaelgohary authored Jun 15, 2023
2 parents 4a4e71c + 78861e0 commit 815938e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/playground/src/weblets/tf_contracts_list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,17 @@
</template>

<template #[`item.actions`]="{ item }">
<v-btn
color="secondary"
variant="tonal"
<IconActionBtn
tooltip="Show Details"
icon="mdi-eye-outline"
@click="
item.value.type !== 'name'
? onShowDetails(item.value.contractId)
: layout.openDialog(item.value, false, true)
"
:disabled="(loading && loadingContractId !== item.value.contractId) || deleting"
:loading="loadingContractId == item.value.contractId"
>
Show Details
</v-btn>
/>
</template>
</ListTable>

Expand Down Expand Up @@ -130,6 +128,7 @@
import { ContractStates } from "@threefold/grid_client";
import { ref } from "vue";
import IconActionBtn from "../components/icon_action_btn.vue";
import { useProfileManager } from "../stores";
import type { VDataTableHeader } from "../types";
import { getUserContracts, type NormalizedContract } from "../utils/contracts";
Expand Down Expand Up @@ -248,6 +247,7 @@ export default {
name: "TfContractsList",
components: {
ListTable,
IconActionBtn,
},
};
</script>

0 comments on commit 815938e

Please sign in to comment.