Skip to content

Commit

Permalink
fix: adjust update metadata texts
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidsowardx committed Jan 19, 2024
1 parent b7bfc0e commit 4defce6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
}
const texts = {
verified: 'Entity has valid two-way link',
notVerified: 'Entiy is not correctly linked',
error: "Can't check entity linking status"
verified: 'Entity has valid two-way claim',
notVerified:
"Entity is not correctly confirming this dApp Definition's claim",
error: "Can't check entity two-way claim status"
}
$: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
}
const texts = {
verified: 'URL has valid `.well-known/radix.json` deployed',
verified: 'Website has valid `.well-known/radix.json` confirming claim',
notVerified:
"URL can't be verified. Make sure `.well-known/radix.json` is deployed correctly",
error: "Can't check URL"
"`.well-known/radix.json` file is not currently confirming this dApp Definition's claim",
error:
'Website does not have `.well-known/radix.json` file or is not reachable'
}
const isValidUrl = (url: string) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import SendToWalletButton from '$lib/SendToWalletButton.svelte'
import IconNew from '@components/_base/icon/IconNew.svelte'
import TrashIcon from '@icons/trash.svg'
import RestoreIcon from '@icons/replay_black_24dp.svg'
export let entityAddress: string
export let explicitMetadata: string[]
export let defaultFormState = {}
Expand All @@ -31,7 +31,6 @@
const dispatchTxFinished = createEventDispatcher()
const { walletApi } = $dAppToolkit!
const getMetadata = (address: string) =>
callApi('getEntityDetailsVaultAggregated', [address], {
explicitMetadata
Expand Down Expand Up @@ -209,15 +208,16 @@
<Divider />
{#if $hasDataChanged}
<div class="data-has-changed">
Form values have been updated. In order to commit the changes, you need to
send transaction to Radix Wallet.
You have made edits to the current on-network values. In order to commit
your edits, click "Send to the Radix Wallet" to approve the needed
transaction.
</div>
<button
class="restore-button"
on:click={() => {
formState.set(JSON.parse(JSON.stringify($initialFormState)))
}}
>Restore current on-network values <div class="icon-shift">
>Reset All Edits <div class="icon-shift">
<IconNew --size="1rem" icon={RestoreIcon} />
</div></button
>
Expand Down

0 comments on commit 4defce6

Please sign in to comment.