@@ -112,9 +115,11 @@
{{ $t("join.choose_name") }}
+ :value="selectedProfile">
- event.target.focus()"
+ @focus="$event.target.select()"
v-model="selectedProfile.name">
@@ -126,7 +131,7 @@
-
+
@@ -586,6 +591,21 @@ export default {
showAvatarPickerList() {
this.$refs.avatar.$refs.input.click();
},
+
+ /**
+ * Show picker to select user avatar file
+ */
+ showUserAvatarPicker() {
+ if (this.step == steps.INITIAL) {
+ this.$refs.useravatar.click();
+ }
+ },
+
+ handlePickedUserAvatar(event) {
+ util.loadAvatarFromFile(event, (image) => {
+ this.selectedProfile.image = image;
+ });
+ },
}
};
diff --git a/src/components/Join.vue b/src/components/Join.vue
index 3ca310d..938952b 100644
--- a/src/components/Join.vue
+++ b/src/components/Join.vue
@@ -18,7 +18,7 @@
- Choose a name to use.
+ {{ $t("join.choose_name") }}
@@ -29,7 +29,7 @@
outlined
dense
@change="selectAvatar"
- :value="availableAvatars[0]"
+ :value="selectedProfile"
single-line
autofocus
>
@@ -39,10 +39,8 @@
solo
flat
hide-details
- @click.native.stop="
- {
- }
- "
+ @click.native.stop="(event) => event.target.focus()"
+ @focus="$event.target.select()"
v-model="selectedProfile.name"
>