Skip to content

Commit

Permalink
update cloud gui
Browse files Browse the repository at this point in the history
  • Loading branch information
lindongchen committed Sep 1, 2024
1 parent ceec8c3 commit 993a86a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gui/apps/ztm/cloud/views/Files.vue
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ onMounted(()=>{
<!-- <b>Files</b> -->
</template>
<template #end>
<Button v-if="!isMobile" icon="pi pi-refresh" text @click="load" :loading="loader"/>
<!-- <Button v-if="!isMobile" icon="pi pi-refresh" text @click="load" :loading="loader"/> -->
<Button @click="openQueue" :severity="!props.queueSize?'secondary':'primary'">
<i :class="!props.queueSize?'pi pi-inbox':'pi pi-spinner pi-spin'"/>
<Badge v-if="!!props.queueSize" :value="props.queueSize" size="small"></Badge>
Expand Down
10 changes: 4 additions & 6 deletions gui/apps/ztm/cloud/views/Queue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,11 @@ const active = ref(0)
<div v-if="props.downloads.length>0" class="px-4 py-2">
<div v-for="(item, index) in props.downloads" :key="index" class="flex p-2" >
<div class="pr-3">
<img class="relative" :src="checker(item.name)" width="30" height="30" style="top: 5px;"/>
<img v-tooltip="item.hash" class="relative" :src="checker(item.path.split('/')[item.path.split('/').length-1])" width="30" height="30" style="top: 5px;"/>
</div>
<div class="flex-item text-left">
<div>
<b class="mr-2">{{ item.name }}</b>
<span class="opacity-70">{{ item.path }}</span>
<b class="mr-2">{{ item.path }}</b>
</div>
<div >
<ProgressBar :value="(item.downloading*100).toFixed(0)" style="height: 14px;">
Expand All @@ -91,12 +90,11 @@ const active = ref(0)
<div v-if="props.downloads.length>0" class="px-4 py-2">
<div v-for="(item, index) in props.uploads" :key="index" class="flex p-2" >
<div class="pr-3">
<img class="relative" :src="checker(item.name)" width="30" height="30" style="top: 5px;"/>
<img v-tooltip="item.hash" class="relative" :src="checker(item.path.split('/')[item.path.split('/').length-1])" width="30" height="30" style="top: 5px;"/>
</div>
<div class="flex-item text-left">
<div>
<b class="mr-2">{{ item.name }}</b>
<span class="opacity-70">{{ item.path }}</span>
<b class="mr-2">{{ item.path }}</b>
</div>
<div >
<ProgressBar :value="(item.uploading*100).toFixed(0)" style="height: 14px;">
Expand Down

0 comments on commit 993a86a

Please sign in to comment.