mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-02 22:51:34 -06:00
fix pull client.
This commit is contained in:
@@ -6,23 +6,23 @@
|
||||
color="info"
|
||||
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-dialog v-model="dialog" max-width="920px">
|
||||
<v-dialog v-model="dialog" max-width="780px">
|
||||
<v-card>
|
||||
<v-card-title class="headline">
|
||||
Pull neko images
|
||||
</v-card-title>
|
||||
<v-card-text>
|
||||
<template v-if="status.layers.length > 0">
|
||||
<pre v-for="layer in status.layers" :key="layer.id">{{ layer.id }} {{ layer.progress && layer.progress + ' ' }}{{ layer.status }}</pre>
|
||||
<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.status }}{{ layer.progress && ' ' + layer.progress }}</pre>
|
||||
<br />
|
||||
</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>
|
||||
</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-actions>
|
||||
<template v-if="!status.active">
|
||||
@@ -38,11 +38,11 @@
|
||||
Start
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-spacer></v-spacer>
|
||||
<v-spacer v-else></v-spacer>
|
||||
<v-btn v-if="status.active" color="red" text :loading="loading" @click="Stop">
|
||||
Stop
|
||||
</v-btn>
|
||||
<v-btn v-else color="grey" text @click="dialog = false">
|
||||
<v-btn color="grey" text @click="dialog = false">
|
||||
Close
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
@@ -57,7 +57,7 @@ import { Vue, Component } from 'vue-property-decorator'
|
||||
@Component({
|
||||
components: {}
|
||||
})
|
||||
export default class PUll extends Vue {
|
||||
export default class Pull extends Vue {
|
||||
private dialog = false
|
||||
private loading = false
|
||||
private nekoImage = ''
|
||||
|
||||
Reference in New Issue
Block a user