@@ -24,12 +24,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
24
24
prominent
25
25
color =" grey-lighten-3"
26
26
>
27
- <h3 class =" text-h5" >{{ $t('UserProfile.tableHeader') }}</h3 >
28
- <p class =" text-body-1" >{{ $t('UserProfile.tableSubHeader') }}</p >
27
+ <h3 class =" text-h5" >{{ $t('UserProfile.title') }}</h3 >
29
28
</v-alert >
30
- <v-form v-if = " user !== null " >
29
+ <v-form >
31
30
<v-defaults-provider :defaults =" $options.vuetifyDefaults" >
32
31
<v-container py-0 >
32
+ <v-row no-gutters >
33
+ <h3 >{{ $t('UserProfile.yourProfile') }}</h3 >
34
+ </v-row >
35
+
33
36
<v-row no-gutters class =" align-center wrap" >
34
37
<v-col cols =" 3" >
35
38
<span >{{ $t('UserProfile.username') }}</span >
@@ -45,53 +48,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
45
48
</v-col >
46
49
</v-row >
47
50
48
- <v-row no-gutters class =" align-center wrap" >
49
- <v-col cols =" 3" >
50
- <span >{{ $t('UserProfile.administrator') }}</span >
51
- </v-col >
52
- <v-col cols =" 9" >
53
- <v-checkbox
54
- v-model =" user.admin"
55
- disabled
56
- id =" profile-admin"
57
- aria-disabled =" true"
58
- class =" text-body-1"
59
- />
60
- </v-col >
61
- </v-row >
62
-
63
- <v-row no-gutters class =" align-center wrap" >
64
- <v-col cols =" 3" >
65
- <span >{{ $t('UserProfile.groups') }}</span >
66
- </v-col >
67
- <v-col cols =" 9" >
68
- <v-select
69
- :items =" user.groups"
70
- v-model =" user.groups"
71
- :menu-props =" { attach: true }"
72
- multiple
73
- disabled
74
- id =" profile-groups"
75
- aria-disabled =" true"
76
- class =" text-body-1"
77
- />
78
- </v-col >
79
- </v-row >
80
-
81
- <v-row no-gutters class =" align-center wrap" >
82
- <v-col cols =" 3" >
83
- <span >{{ $t('UserProfile.created') }}</span >
84
- </v-col >
85
- <v-col cols =" 9" >
86
- <v-text-field
87
- :model-value =" user.created"
88
- disabled
89
- id =" profile-created"
90
- aria-disabled =" true"
91
- class =" text-body-1"
92
- />
93
- </v-col >
94
- </v-row >
95
51
<v-row no-gutters class =" align-center wrap" >
96
52
<v-col cols =" 3" >
97
53
<span >{{ $t('UserProfile.permissions') }}</span >
@@ -103,16 +59,22 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
103
59
:menu-props =" { attach: true }"
104
60
multiple
105
61
disabled
62
+ chips
106
63
id =" profile-permissions"
107
- aria-disabled =" true"
108
- class =" text-body-1"
109
- />
64
+ >
65
+ <template #chip =" { data } " >
66
+ <v-chip
67
+ v-bind =" data"
68
+ label
69
+ size =" default"
70
+ />
71
+ </template >
72
+ </v-select >
110
73
</v-col >
111
74
</v-row >
75
+
112
76
<v-row no-gutters class =" mt-4" >
113
- <v-col cols =" 12" >
114
- <p class =" text-h6" >Preferences</p >
115
- </v-col >
77
+ <h3 >Preferences</h3 >
116
78
</v-row >
117
79
118
80
<v-row no-gutters class =" align-center wrap" >
@@ -158,7 +120,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
158
120
v-for =" theme in $options.jobThemes"
159
121
:key =" theme"
160
122
>
161
- {{ theme.replace('_', ' ') }}
123
+ {{ upperFirst( theme.replace('_', ' ') ) }}
162
124
</th >
163
125
</tr >
164
126
<tr >
@@ -234,7 +196,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
234
196
</v-container >
235
197
</v-defaults-provider >
236
198
</v-form >
237
- <v-progress-linear v-else :indeterminate =" true" />
238
199
</v-col >
239
200
</v-row >
240
201
</v-container >
@@ -249,6 +210,7 @@ import { decreaseFontSize, getCurrentFontSize, increaseFontSize, resetFontSize }
249
210
import { allViews , useDefaultView } from ' @/views/views.js'
250
211
import Job from ' @/components/cylc/Job.vue'
251
212
import JobState from ' @/model/JobState.model'
213
+ import { upperFirst } from ' lodash-es'
252
214
253
215
// TODO: update where user preferences are stored after #335
254
216
@@ -265,6 +227,7 @@ export default {
265
227
cyclePointsOrderDesc: useCyclePointsOrderDesc (),
266
228
jobTheme: useJobTheme (),
267
229
reducedAnimation: useReducedAnimation (),
230
+ upperFirst,
268
231
}
269
232
},
270
233
0 commit comments