Current user "Online For" fix, no notes yet

This commit is contained in:
Natsumi
2022-08-16 19:16:12 +12:00
parent 9849c37c27
commit 95c6b21431
2 changed files with 6 additions and 8 deletions
-2
View File
@@ -1384,11 +1384,9 @@ speechSynthesis.getVoices();
} else { } else {
json.location = ''; json.location = '';
} }
if (json.location && json.location === 'offline') {
json.$online_for = API.currentUser.$online_for; json.$online_for = API.currentUser.$online_for;
json.$offline_for = API.currentUser.$offline_for; json.$offline_for = API.currentUser.$offline_for;
} }
}
if (typeof json.statusDescription !== 'undefined') { if (typeof json.statusDescription !== 'undefined') {
json.statusDescription = $app.replaceBioSymbols( json.statusDescription = $app.replaceBioSymbols(
json.statusDescription json.statusDescription
+4 -4
View File
@@ -1560,13 +1560,13 @@ html
span.extra(v-else) span.extra(v-else)
timer(:epoch="user.$location_at") timer(:epoch="user.$location_at")
.x-friend-list(style="max-height:none") .x-friend-list(style="max-height:none")
//- .x-friend-item(v-if="userDialog.id !== API.currentUser.id" style="width:100%;cursor:default")
//- .detail
//- span.name Note
//- span.extra(v-text="userDialog.ref.note")
.x-friend-item(style="width:100%;cursor:default") .x-friend-item(style="width:100%;cursor:default")
.detail .detail
span.name Note span.name Note
span.extra(v-text="userDialog.ref.note")
.x-friend-item(style="width:100%;cursor:default")
.detail
span.name Local Note
el-input.extra(v-model="userDialog.memo" type="textarea" :rows="2" :autosize="{ minRows: 1, maxRows: 20 }" placeholder="Click to add a note" size="mini" resize="none") el-input.extra(v-model="userDialog.memo" type="textarea" :rows="2" :autosize="{ minRows: 1, maxRows: 20 }" placeholder="Click to add a note" size="mini" resize="none")
.x-friend-item(style="width:100%;cursor:default") .x-friend-item(style="width:100%;cursor:default")
.detail .detail