Skip to content

Commit

Permalink
fix(user): login text and user skin profile behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Sep 17, 2019
1 parent b20c22d commit db83b86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/renderer/windows/main/UserPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
</v-flex>
<v-flex xs1 style="padding-left: 5px;">
<v-select hide-details :label="$t('user.profileService')"
readonly
:items="profileServices" :value="user.profileService"
color="primary" dark prepend-inner-icon="add"
@click:prepend-inner="userServiceDialog=true" />
Expand Down
10 changes: 5 additions & 5 deletions src/renderer/windows/main/components/DialogLogin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
dark
prepend-icon="person"
required
:label="$t(`user.${selectedAuthService}.account`)"
:label="$t(`user.${selectedAuthService === 'offline' ? 'offline' : 'mojang'}.account`)"
:rules="accountRules"
:items="history"
:error="accountError"
Expand All @@ -60,7 +60,7 @@
prepend-icon="lock"
type="password"
required
:label="$t(`user.${selectedAuthService}.password`)"
:label="$t(`user.${selectedAuthService === 'offline' ? 'offline' : 'mojang'}.password`)"
:rules="passwordRules"
:disabled="selectedAuthService==='offline'"
:error="passwordError"
Expand Down Expand Up @@ -167,13 +167,13 @@ export default {
computed: {
authServices() {
return this.$repo.getters.authServices.map(m => ({
text: this.$t(`user.${m}.name`),
text: m === 'offline' || m === 'mojang' ? this.$t(`user.${m}.name`) : m,
value: m,
}));
},
profileServices() {
return this.$repo.getters.profileServices.map(m => ({
text: this.$t(`user.${m}.name`),
text: m === 'offline' || m === 'mojang' ? this.$t(`user.${m}.name`) : m,
value: m,
}));
},
Expand Down Expand Up @@ -256,7 +256,7 @@ export default {
});
}
},
deleteGameProfile(profile) {
deleteGameProfile(profile) {
this.$repo.commit('removeUserProfile', profile.userId);
},
async login() {
Expand Down

0 comments on commit db83b86

Please sign in to comment.