mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-02 22:46:03 -04:00
Get user display name and avatar from the server rather than storing them in the local storage
This commit is contained in:
parent
b86d2a2d4f
commit
67f42b2f26
4 changed files with 68 additions and 21 deletions
|
@ -1,4 +1,4 @@
|
|||
<div ng-controller="SettingsController" class="user">
|
||||
<div ng-controller="SettingsController" class="user" data-ng-init="onInit()">
|
||||
|
||||
<div id="page">
|
||||
<div id="wrapper">
|
||||
|
@ -10,7 +10,7 @@
|
|||
<tr>
|
||||
<td>
|
||||
<div class="profile-avatar">
|
||||
<img ng-src="{{ profile.avatarUrl || 'img/default-profile.jpg' }}" m-file-input="profile.avatarFile"/>
|
||||
<img ng-src="{{ (null !== profile.avatarUrl) ? profile.avatarUrl : 'img/default-profile.jpg' }}" m-file-input="profile.avatarFile"/>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
@ -19,7 +19,7 @@
|
|||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<button ng-disabled="(profile.displayName == config.displayName) && (profile.avatarUrl == config.avatarUrl)"
|
||||
<button ng-disabled="(profile.displayName == profileOnServer.displayName) && (profile.avatarUrl == profileOnServer.avatarUrl)"
|
||||
ng-click="saveProfile()">Save</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue