Add support for Zoom display name in profiles

This commit is contained in:
2019-09-18 09:35:24 +02:00
parent 0076d59a42
commit 6995b67a22
7 changed files with 148 additions and 96 deletions
+3 -1
View File
@@ -22,6 +22,7 @@ export default Component.extend({
isValidGithubUsername: notEmpty('github_username'),
isValidGiteaUsername: notEmpty('gitea_username'),
isValidWikiUsername: notEmpty('wiki_username'),
isValidZoomDisplayName: notEmpty('zoom_display_name'),
isValid: and(
'isValidAccount',
@@ -48,7 +49,8 @@ export default Component.extend({
github_username: null,
github_uid: null,
gitea_username: null,
wiki_username: null
wiki_username: null,
zoom_display_name: null
});
},
@@ -43,6 +43,11 @@
{{input name="wiki_username" type="text" value=wiki_username placeholder="ZeroCool"
class=(if isValidWikiUsername "valid" "") id="c-wiki-username"}}
</p>
<p>
<label for="c-zoom-display-name">Zoom display name</label>
{{input name="zoom_display_name" type="text" value=zoom_display_name placeholder="Zero Cool"
class=(if isValidZoomDisplayName "valid" "") id="c-zoom-display-name"}}
</p>
<p class="actions">
{{input type="submit" disabled=inProgress
value=(if inProgress "Processing" "Save")}}