mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
fix: project status
This commit is contained in:
parent
b2e47ed12a
commit
8b5d67276f
1 changed files with 7 additions and 1 deletions
|
@ -5,7 +5,7 @@ const props = defineProps<{
|
||||||
project?: Partial<Project>
|
project?: Partial<Project>
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const version = ref(props.project?.project_phase?.toLowerCase() || undefined)
|
const version = ref(props.project?.project_phase ? props.project?.project_phase?.toLowerCase() : props.project?.project_status?.version ? props.project?.project_status?.version.toLowerCase() : undefined)
|
||||||
const openSource = ref(props.project?.blockchain_features?.opensource || false)
|
const openSource = ref(props.project?.blockchain_features?.opensource || false)
|
||||||
const upgradability = ref(props.project?.blockchain_features?.upgradability?.enabled || false)
|
const upgradability = ref(props.project?.blockchain_features?.upgradability?.enabled || false)
|
||||||
const assetType = ref(props.project?.blockchain_features?.asset_custody_type?.toLowerCase() || '')
|
const assetType = ref(props.project?.blockchain_features?.asset_custody_type?.toLowerCase() || '')
|
||||||
|
@ -19,6 +19,12 @@ const { saveProject } = useProject()
|
||||||
function save() {
|
function save() {
|
||||||
saveProject({
|
saveProject({
|
||||||
project_phase: version.value,
|
project_phase: version.value,
|
||||||
|
project_status: {
|
||||||
|
live_status: version.value ? true : false,
|
||||||
|
mainnet: version.value === 'mainnet' ? true : false,
|
||||||
|
testnet: version.value === 'testnet' ? true : false,
|
||||||
|
version: version.value,
|
||||||
|
},
|
||||||
blockchain_features: {
|
blockchain_features: {
|
||||||
opensource: openSource.value,
|
opensource: openSource.value,
|
||||||
upgradability: {
|
upgradability: {
|
||||||
|
|
Loading…
Reference in a new issue