Merge pull request #3861 from MaxLeiter/mentionsLoading

Move mentions loading text out of header
This commit is contained in:
Pavel Djundik 2020-04-15 11:23:35 +03:00 committed by GitHub
commit e772c4eab5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,10 +8,10 @@
<div class="mentions-popup"> <div class="mentions-popup">
<div class="mentions-popup-title"> <div class="mentions-popup-title">
Recent mentions Recent mentions
<span v-if="isLoading">- Loading</span>
</div> </div>
<template v-if="resolvedMessages.length === 0"> <template v-if="resolvedMessages.length === 0">
<p>There are no recent mentions.</p> <p v-if="isLoading">Loading</p>
<p v-else>There are no recent mentions.</p>
</template> </template>
<template v-for="message in resolvedMessages" v-else> <template v-for="message in resolvedMessages" v-else>
<div :key="message.id" :class="['msg', message.type]"> <div :key="message.id" :class="['msg', message.type]">