File tree 4 files changed +25
-7
lines changed
4 files changed +25
-7
lines changed Original file line number Diff line number Diff line change 36
36
:key =" `${section.id}-eval-inst-${index}`"
37
37
class =" mb-2"
38
38
>
39
- <strong >{{ titleCaseName( instructor.instructor_name) }}</strong >
39
+ <strong >{{ instructor.instructor_name }}</strong >
40
40
<div v-if =" hasTitle(instructor)" class =" fst-italic text-muted" >
41
41
{{ instructor.instructor_title }}
42
42
</div >
52
52
<a
53
53
v-out =" 'Evaluate instructor'"
54
54
:href =" evalObj.url" >
55
- {{ titleCaseName( instructor.instructor_name) }}
55
+ {{ instructor.instructor_name }}
56
56
</a >
57
57
<div v-if =" hasTitle(instructor)"
58
58
class =" fst-italic text-muted mb-2"
Original file line number Diff line number Diff line change 3
3
<template #panel-body >
4
4
<h2 class =" h4 mb-3" >
5
5
<span >
6
- {{ titleCaseName( name) }}
6
+ {{ name }}
7
7
<span v-if =" hasPronouns" class =" myuw-text-md text-uppercase" title =" Pronouns" >
8
8
({{ titleCaseName(pronouns) }})
9
9
</span >
@@ -41,7 +41,7 @@ export default {
41
41
return Boolean (this .pronouns && this .pronouns .length );
42
42
},
43
43
name () {
44
- return this .displayName ? this .displayName : this .fullName ;
44
+ return this .displayName ? this .displayName : this .fullName ; // MUWM-5134
45
45
},
46
46
},
47
47
mounted () {
Original file line number Diff line number Diff line change 9
9
:key =" i"
10
10
:class =" { 'mb-1': i === section.grade_submission_delegates.length + 1 }"
11
11
>
12
- {{ titleCaseName (delegate.person.display_name ) }}
12
+ {{ delegateDisplayName (delegate.person) }}
13
13
({{ titleCaseWord(delegate.level) }})
14
14
</li >
15
15
</ul >
@@ -78,5 +78,14 @@ export default {
78
78
};
79
79
},
80
80
},
81
+ methods: {
82
+ delegateDisplayName (delegate ) {
83
+ // MUWM-5277
84
+ if (delegate .display_name ) {
85
+ return delegate .display_name ;
86
+ }
87
+ return delegate .full_name ;
88
+ },
89
+ },
81
90
};
82
91
</script >
Original file line number Diff line number Diff line change 10
10
<template #collapsed-body >
11
11
<ul class =" list-unstyled mb-0" >
12
12
<li v-for =" (instructor, i) in section.instructors" :key =" i" class =" mb-1" >
13
- {{ titleCaseName (instructor.display_name ) }}
13
+ {{ instructorDisplayName (instructor) }}
14
14
</li >
15
15
</ul >
16
16
</template >
17
17
</uw-collapsed-item >
18
18
19
19
<ul v-else class =" list-unstyled mb-0" >
20
20
<li v-for =" (instructor, i) in section.instructors" :key =" i" class =" mb-1" >
21
- {{ titleCaseName (instructor.display_name ) }}
21
+ {{ instructorDisplayName (instructor) }}
22
22
</li >
23
23
</ul >
24
24
</div >
@@ -75,5 +75,14 @@ export default {
75
75
};
76
76
},
77
77
},
78
+ methods: {
79
+ instructorDisplayName (instructor ) {
80
+ // MUWM-5277
81
+ if (instructor .display_name ) {
82
+ return instructor .display_name ;
83
+ }
84
+ return instructor .full_name ;
85
+ },
86
+ },
78
87
};
79
88
</script >
You can’t perform that action at this time.
0 commit comments