@visualizevalue/mint-app-base 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,7 +15,11 @@ const loading = ref(true)
|
|
|
15
15
|
const load = async () => {
|
|
16
16
|
loading.value = true
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
try {
|
|
19
|
+
await store.fetchToken(collection.value.address, route.params.tokenId)
|
|
20
|
+
} catch (e) {
|
|
21
|
+
navigateTo({ name: 'id-collection' }, { replace: true })
|
|
22
|
+
}
|
|
19
23
|
|
|
20
24
|
loading.value = false
|
|
21
25
|
}
|
|
@@ -14,7 +14,11 @@ const collection = ref(null)
|
|
|
14
14
|
const load = async () => {
|
|
15
15
|
loading.value = true
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
try {
|
|
18
|
+
collection.value = await store.fetchCollection(address.value)
|
|
19
|
+
} catch (e) {
|
|
20
|
+
navigateTo({ name: 'id' }, { replace: true })
|
|
21
|
+
}
|
|
18
22
|
|
|
19
23
|
loading.value = false
|
|
20
24
|
}
|
|
@@ -126,7 +126,10 @@ const deployed = async (receipt) => {
|
|
|
126
126
|
|
|
127
127
|
const artist = store.artist(id.value)
|
|
128
128
|
await store.fetchCollections(id.value, config.public.factoryAddress, artist.collectionsFetchedUntilBlock)
|
|
129
|
-
await navigateTo(
|
|
129
|
+
await navigateTo({
|
|
130
|
+
name: 'id-collection',
|
|
131
|
+
params: { id: id.value, collection: createdEvent.args.contractAddress }
|
|
132
|
+
})
|
|
130
133
|
}
|
|
131
134
|
|
|
132
135
|
useMetaData({
|
package/package.json
CHANGED
package/app/pages/[id]/add.vue
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<Authenticated>
|
|
3
|
-
<PageFrame :title="[
|
|
4
|
-
{
|
|
5
|
-
text: `Add existing`
|
|
6
|
-
}
|
|
7
|
-
]">
|
|
8
|
-
<form @submit.stop.prevent="add">
|
|
9
|
-
<FormInput v-model="address" placeholder="Contract Address (0x...)" />
|
|
10
|
-
|
|
11
|
-
<Button>Add</Button>
|
|
12
|
-
</form>
|
|
13
|
-
</PageFrame>
|
|
14
|
-
</Authenticated>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script setup>
|
|
18
|
-
const id = useArtistId()
|
|
19
|
-
|
|
20
|
-
const address = ref('')
|
|
21
|
-
|
|
22
|
-
const add = async () => {
|
|
23
|
-
if (! isAddress(address.value)) {
|
|
24
|
-
alert('Not an address')
|
|
25
|
-
return
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
await navigateTo(`/${id.value}/${address.value}`)
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
useMetaData({
|
|
32
|
-
title: `Add Existing Collection`,
|
|
33
|
-
})
|
|
34
|
-
</script>
|
|
35
|
-
|
|
36
|
-
<style scoped>
|
|
37
|
-
form {
|
|
38
|
-
width: 100%;
|
|
39
|
-
}
|
|
40
|
-
</style>
|