diff --git a/client/src/components/RoomsCreate.vue b/client/src/components/RoomsCreate.vue index c281cd5..3f11dde 100644 --- a/client/src/components/RoomsCreate.vue +++ b/client/src/components/RoomsCreate.vue @@ -16,7 +16,7 @@ v-model="data.name" :rules="[ rules.minLen(2), rules.containerNameStart, rules.containerName ]" autocomplete="off" - :hint="!data.name && '... using random name'" + :hint="!data.name ? '... using random name' : ''" persistent-hint > @@ -38,7 +38,7 @@ :type="showUserPass ? 'text' : 'password'" @click:append="showUserPass = !showUserPass" autocomplete="off" - :hint="!data.user_pass && '... using random password'" + :hint="!data.user_pass ? '... using random password' : ''" persistent-hint > @@ -50,7 +50,7 @@ :type="showAdminPass ? 'text' : 'password'" @click:append="showAdminPass = !showAdminPass" autocomplete="off" - :hint="!data.admin_pass && '... using random password'" + :hint="!data.admin_pass ? '... using random password' : ''" persistent-hint > @@ -249,7 +249,7 @@

Mounts

- mdi-plus + mdi-plus
@@ -257,14 +257,14 @@ label="Type" :items="mountTypes" :value="type" - @input="$set(data.mounts, index, { type: $event, host_path, container_path })" + @input="setMount(index, { type: $event, host_path, container_path })" > @@ -274,16 +274,16 @@
- mdi-close + mdi-close
- +

Resources

- + - + Nvidia docker runtime is required. - + = mounts.length) { + mounts = [ ...mounts, data ] + } else { + mounts[index] = data + } + Vue.set(this.data, 'mounts', mounts) + } + + delMount(index: number) { + const mounts = this.data.mounts || [] + mounts.splice(index, 1) + Vue.set(this.data, 'mounts', mounts) + } + async CreateAndStart() { this.loadingWithStart = true try {