mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Updates notifications screen to a more consistent UI (#11635)
This commit is contained in:
committed by
Matteo Pagliazzi
parent
6b072f0f8f
commit
b9af3fb40e
@@ -28,7 +28,7 @@
|
|||||||
<small>{{ $t('unsubscribeAllEmailsText') }}</small>
|
<small>{{ $t('unsubscribeAllEmailsText') }}</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-8">
|
<div class="col-8">
|
||||||
<table class="table"></table>
|
<table class="table">
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<th>
|
<th>
|
||||||
@@ -38,10 +38,7 @@
|
|||||||
<span>{{ $t('push') }}</span>
|
<span>{{ $t('push') }}</span>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr
|
<tr v-for="notification in notificationsIds" :key="notification">
|
||||||
v-for="notification in notificationsIds"
|
|
||||||
:key="notification"
|
|
||||||
>
|
|
||||||
<td>
|
<td>
|
||||||
<span>{{ $t(notification) }}</span>
|
<span>{{ $t(notification) }}</span>
|
||||||
</td>
|
</td>
|
||||||
@@ -58,9 +55,11 @@
|
|||||||
type="checkbox"
|
type="checkbox"
|
||||||
@change="set('pushNotifications', notification)"
|
@change="set('pushNotifications', notification)"
|
||||||
>
|
>
|
||||||
<hr>
|
<td v-else>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -74,6 +73,8 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
notificationsIds: Object.freeze([
|
notificationsIds: Object.freeze([
|
||||||
|
'majorUpdates',
|
||||||
|
'onboarding',
|
||||||
'newPM',
|
'newPM',
|
||||||
'wonChallenge',
|
'wonChallenge',
|
||||||
'giftedGems',
|
'giftedGems',
|
||||||
@@ -85,8 +86,6 @@ export default {
|
|||||||
'invitedQuest',
|
'invitedQuest',
|
||||||
'importantAnnouncements',
|
'importantAnnouncements',
|
||||||
'weeklyRecaps',
|
'weeklyRecaps',
|
||||||
'onboarding',
|
|
||||||
'majorUpdates',
|
|
||||||
'subscriptionReminders',
|
'subscriptionReminders',
|
||||||
]),
|
]),
|
||||||
// list of email-only notifications
|
// list of email-only notifications
|
||||||
|
|||||||
Reference in New Issue
Block a user