Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
This commit is contained in:
Vinicius Reis 2022-07-06 20:32:53 -03:00
Π ΠΎΠ΄ΠΈΡ‚Π΅Π»ΡŒ 3120d0b54b
ΠšΠΎΠΌΠΌΠΈΡ‚ 0774f56f57
НС Π½Π°ΠΉΠ΄Π΅Π½ ΠΊΠ»ΡŽΡ‡, ΡΠΎΠΎΡ‚Π²Π΅Ρ‚ΡΡ‚Π²ΡƒΡŽΡ‰ΠΈΠΉ Π΄Π°Π½Π½ΠΎΠΉ подписи
Π˜Π΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€ ΠΊΠ»ΡŽΡ‡Π° GPG: 33D19916F9FF2308
1 ΠΈΠ·ΠΌΠ΅Π½Ρ‘Π½Π½Ρ‹Ρ… Ρ„Π°ΠΉΠ»ΠΎΠ²: 5 Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠΉ ΠΈ 5 ΡƒΠ΄Π°Π»Π΅Π½ΠΈΠΉ

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@ -99,7 +99,7 @@
</template>
<script>
import Vue from 'vue'
import Vue, { set } from 'vue'
import escapeHtml from 'escape-html'
import moment from '@nextcloud/moment'
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip'
@ -482,7 +482,7 @@ export default {
// Make sure we get our own session updated
// This should ideally be part of a global store where we can have that updated on the actual name change for guests
const currentUpdatedSession = this.sessions.find(session => session.id === this.currentSession.id)
Vue.set(this, 'currentSession', currentUpdatedSession)
set(this, 'currentSession', currentUpdatedSession)
const currentSessionIds = this.sessions.map((session) => session.userId)
const currentGuestIds = this.sessions.map((session) => session.guestId)
@ -499,13 +499,13 @@ export default {
if (this.filteredSessions[sessionKey]) {
// update timestamp if relevant
if (this.filteredSessions[sessionKey].lastContact < session.lastContact) {
Vue.set(this.filteredSessions[sessionKey], 'lastContact', session.lastContact)
set(this.filteredSessions[sessionKey], 'lastContact', session.lastContact)
}
} else {
Vue.set(this.filteredSessions, sessionKey, session)
set(this.filteredSessions, sessionKey, session)
}
if (session.id === this.currentSession.id) {
Vue.set(this.filteredSessions[sessionKey], 'isCurrent', true)
set(this.filteredSessions[sessionKey], 'isCurrent', true)
}
}
},