user timezone v1 , add autofocus for CreateFolder,RenameItem popup

This commit is contained in:
Milos Holba
2021-01-03 18:00:28 +01:00
parent 64fd6a2265
commit ded02fc15b
12 changed files with 138 additions and 18 deletions

View File

@@ -105,6 +105,25 @@
</div>
</div>
</PageTabGroup>
<PageTabGroup v-if="userInfo">
<div class="form block-form">
<FormLabel>User Timezone</FormLabel>
<div class="block-wrapper">
<label>Timezone</label>
<div class="input-wrapper">
<input @change="$updateText('/user/relationships/settings', 'timezone', userTimezone)"
v-model="userTimezone"
placeholder="Type your timezone"
type="number"
/>
<small class="input-help">
Set your timezone by type the hours of your GMT : 1, -5, 1.5
</small>
</div>
</div>
</div>
</PageTabGroup>
</PageTab>
</template>
@@ -147,6 +166,7 @@
return {
userInfo: undefined,
billingInfo: undefined,
userTimezone: undefined,
isLoading: false,
}
},
@@ -158,6 +178,8 @@
},
created() {
this.userTimezone = this.user.relationships.timezone.data.attributes.timezone
this.userInfo = {
name: this.user.data.attributes.name,
email: this.user.data.attributes.email