🚨 Bug fix drive frontend
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
<div>
|
<div>
|
||||||
<n-collapse-transition :show="showRecycleHint">
|
<n-collapse-transition :show="showRecycleHint">
|
||||||
<n-alert size="small" type="warning" title="Recycle Enabled" class="mb-3">
|
<n-alert size="small" type="warning" title="Recycle Enabled" class="mb-3">
|
||||||
You're uploading to a pool which enabled recycle. If the file you uploaded didn't
|
You're uploading to a pool which enabled recycle. If the file you uploaded didn't referenced
|
||||||
referenced from the Solar Network. It will be marked and will be deleted some while later.
|
from the Solar Network. It will be marked and will be deleted some while later.
|
||||||
</n-alert>
|
</n-alert>
|
||||||
</n-collapse-transition>
|
</n-collapse-transition>
|
||||||
|
|
||||||
@@ -89,7 +89,12 @@ import type { SnFilePool } from '@/types/pool'
|
|||||||
|
|
||||||
import * as tus from 'tus-js-client'
|
import * as tus from 'tus-js-client'
|
||||||
|
|
||||||
const props = defineProps<{ filePool: string | null; modeAdvanced: boolean; pools: SnFilePool[]; bundleId?: string }>()
|
const props = defineProps<{
|
||||||
|
filePool: string | null
|
||||||
|
modeAdvanced: boolean
|
||||||
|
pools: SnFilePool[]
|
||||||
|
bundleId?: string
|
||||||
|
}>()
|
||||||
|
|
||||||
const filePass = ref<string>('')
|
const filePass = ref<string>('')
|
||||||
const fileExpire = ref<number | null>(null)
|
const fileExpire = ref<number | null>(null)
|
||||||
@@ -100,7 +105,7 @@ const currentFilePool = computed(() => {
|
|||||||
})
|
})
|
||||||
const showRecycleHint = computed(() => {
|
const showRecycleHint = computed(() => {
|
||||||
if (!props.filePool) return true
|
if (!props.filePool) return true
|
||||||
return currentFilePool.value.policy_config?.enable_recycle || false
|
return currentFilePool.value?.policy_config?.enable_recycle || false
|
||||||
})
|
})
|
||||||
|
|
||||||
const messageDisplay = useMessage()
|
const messageDisplay = useMessage()
|
||||||
|
@@ -4,6 +4,7 @@ export interface SnFilePool {
|
|||||||
description: string
|
description: string
|
||||||
storage_config: StorageConfig
|
storage_config: StorageConfig
|
||||||
billing_config: BillingConfig
|
billing_config: BillingConfig
|
||||||
|
policy_config: any
|
||||||
public_indexable: boolean
|
public_indexable: boolean
|
||||||
public_usable: boolean
|
public_usable: boolean
|
||||||
no_optimization: boolean
|
no_optimization: boolean
|
||||||
|
Reference in New Issue
Block a user