fix pull client.

This commit is contained in:
Miroslav Šedivý
2022-01-07 20:33:05 +01:00
parent 64a3a8898b
commit 50d10bd097
+9 -9
View File
@@ -6,23 +6,23 @@
color="info" color="info"
dark dark
> >
<v-icon class="mr-2" color="white">mdi-cloud-download-outline</v-icon> Pull neko images <v-icon class="mr-2" color="white">{{ status.active ? 'mdi-cloud-sync' : 'mdi-cloud-download-outline' }}</v-icon> Pull neko images
</v-btn> </v-btn>
<v-dialog v-model="dialog" max-width="920px"> <v-dialog v-model="dialog" max-width="780px">
<v-card> <v-card>
<v-card-title class="headline"> <v-card-title class="headline">
Pull neko images Pull neko images
</v-card-title> </v-card-title>
<v-card-text> <v-card-text>
<template v-if="status.layers.length > 0"> <template v-if="status.active && status.layers && Object.keys(status.layers).length > 0">
<pre v-for="layer in status.layers" :key="layer.id">{{ layer.id }} {{ layer.progress && layer.progress + ' ' }}{{ layer.status }}</pre> <pre v-for="layer in status.layers" :key="layer.id">{{ layer.id }} {{ layer.status }}{{ layer.progress && ' ' + layer.progress }}</pre>
<br /> <br />
</template> </template>
<template v-if="status.status.length > 0"> <template v-if="status.status && status.status.length > 0">
<pre v-for="text in status.status" :key="text">{{ text }}</pre> <pre v-for="text in status.status" :key="text">{{ text }}</pre>
</template> </template>
<pre v-else>Preparing docker image pull</pre> <pre v-else-if="status.active">Preparing docker image pull</pre>
</v-card-text> </v-card-text>
<v-card-actions> <v-card-actions>
<template v-if="!status.active"> <template v-if="!status.active">
@@ -38,11 +38,11 @@
Start Start
</v-btn> </v-btn>
</template> </template>
<v-spacer></v-spacer> <v-spacer v-else></v-spacer>
<v-btn v-if="status.active" color="red" text :loading="loading" @click="Stop"> <v-btn v-if="status.active" color="red" text :loading="loading" @click="Stop">
Stop Stop
</v-btn> </v-btn>
<v-btn v-else color="grey" text @click="dialog = false"> <v-btn color="grey" text @click="dialog = false">
Close Close
</v-btn> </v-btn>
</v-card-actions> </v-card-actions>
@@ -57,7 +57,7 @@ import { Vue, Component } from 'vue-property-decorator'
@Component({ @Component({
components: {} components: {}
}) })
export default class PUll extends Vue { export default class Pull extends Vue {
private dialog = false private dialog = false
private loading = false private loading = false
private nekoImage = '' private nekoImage = ''