1919 <Tooltip :label =" tooltip.instance" />
2020 </b-field >
2121 <b-field >
22- <b-switch :true-value =" 1" :false-value =" 0"
22+ <!-- < b-switch :true-value="1" :false-value="0"
2323 v-model="view.transferable" disabled>
2424 Transferable is by default
25- </b-switch >
25+ </b-switch> -->
2626 </b-field >
2727 <!-- <b-field v-if="view.transferable" label="Price">
2828 <b-input v-model="view.price" ></b-input>
2929 </b-field> -->
3030 <b-field >
31- <b-switch v-model =" uploadMode" passive-type =" is-dark" type =" is-info" >
31+ <b-switch v-model =" uploadMode"
32+ passive-type =" is-dark"
33+ :rounded =" false" >
3234 {{ uploadMode ? 'Upload through KodaDot' : 'IPFS hash' }}
3335 </b-switch >
3436 </b-field >
4042 type =" textarea"
4143 ></b-input >
4244 </b-field >
43- <MetadataUpload v-model =" image" label =" Click to add image" />
44- <div >If your artwork is animated (audio/video/3d model) add animated</div >
45- <MetadataUpload v-model =" animatimated" label =" Add animated file" />
45+ <b-field >
46+ <b-switch v-model =" isImage"
47+ passive-type =" is-dark"
48+ :rounded =" false" >
49+ {{ isImage ? 'Static Image' : 'Animated multimedia' }}
50+ </b-switch >
51+ </b-field >
52+ <MetadataUpload v-if =" isImage" v-model =" image" label =" Click to add image" />
53+ <!-- <div>If your artwork is animated (audio/video/3d model) add animated</div> -->
54+ <MetadataUpload v-if =" !isImage" v-model =" animated" label =" Add animated file" />
4655 <b-field label =" Image data" >
4756 <b-input v-model =" view.meta.image_data" ></b-input >
4857 </b-field >
@@ -78,14 +87,15 @@ export default class CreateItem extends Vue {
7887 @Prop () public index! : number ;
7988 @Prop () public alreadyMinted! : number ;
8089 @Prop () public view! : NFTAndMeta ;
90+ private isImage: boolean = true ;
8191 private tooltip: object = {
8292 name: ' Name of your token' ,
8393 instance: ' Instance is like the identifier of an NFT, like a marketplace ticker. It\' s a "short computer-friendly name"' ,
8494 image: ' Upload will upload your image of the NFT' ,
8595 }
8696 private uploadMode: boolean = true ;
8797 private image: Blob | null = null ;
88- private animatimated : Blob | null = null ;
98+ private animated : Blob | null = null ;
8999
90100 get nftId(): string {
91101 const {collection, instance, sn} = this .view
@@ -108,7 +118,7 @@ export default class CreateItem extends Vue {
108118 } }
109119 }
110120
111- @Watch (' animatimated ' )
121+ @Watch (' animated ' )
112122 private animatedUpload(val : Blob , oldVal : Blob | null ) {
113123 if (val && ! oldVal ) {
114124 this .$emit (' animated' , { image: val , index: this .index })
0 commit comments