Updates notifications screen to a more consistent UI (#11635)

This commit is contained in:
Glendon Solsberry
2019-12-23 11:45:42 -05:00
committed by Matteo Pagliazzi
parent 6b072f0f8f
commit b9af3fb40e
2 changed files with 36 additions and 37 deletions

View File

@@ -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>
&nbsp;
</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