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")}}
@@ -6,7 +6,7 @@ export default Component.extend({
account: null,
iconComponentName: computed('account.site', function() {
if (this.account.site.match(/github|gitea|wiki/)) {
if (this.account.site.match(/github|gitea|wiki|zoom/)) {
return 'icon-account-' + this.account.site.replace(/\./g, '-');
} else {
return 'icon-web-globe';
+1
View File
@@ -19,6 +19,7 @@ export default EmberObject.extend({
github_username: null,
github_uid: null,
wiki_username: null,
zoom_display_name: null,
ipfsData: ''
});
+2 -1
View File
@@ -22,7 +22,8 @@ export default Route.extend({
github_username: model.github_username,
github_uid: model.github_uid,
gitea_username: model.gitea_username,
wiki_username: model.wiki_username
wiki_username: model.wiki_username,
zoom_display_name: model.zoom_display_name
});
}