Skip to content

Commit

Permalink
replace readOnly with hidden, casing change
Browse files Browse the repository at this point in the history
  • Loading branch information
gsteenkamp89 committed Apr 10, 2024
1 parent 4954ca9 commit 9bbcc39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/plugins/oSnap/components/Input/TransactionType.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const transactionTypesWithDetails: {
type: TransactionType;
title: string;
description: string;
readOnly?: boolean;
hidden?: boolean;
}[] = [
{
type: 'transferFunds',
Expand All @@ -40,10 +40,10 @@ const transactionTypesWithDetails: {
},
{
type: 'safeImport',
title: 'Import Safe File',
title: 'Import Safe file',
description:
'Import JSON file exported from Gnosis Safe transaction builder',
readOnly: true
hidden: true
}
];
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defineProps<{
type: TransactionType;
title: string;
description: string;
readOnly?: boolean;
hidden?: boolean;
}[];
}>();
Expand All @@ -31,7 +31,7 @@ function select(type: TransactionType) {
<div class="mx-0 my-4 flex flex-col space-y-3 md:mx-4">
<template v-for="(typeAndDetails, key) in transactionTypesWithDetails">
<button
v-if="!typeAndDetails.readOnly"
v-if="!typeAndDetails.hidden"
:key="key"
@click="select(typeAndDetails.type)"
>
Expand Down

0 comments on commit 9bbcc39

Please sign in to comment.