Skip to content

Commit 4c6cab0

Browse files
committed
fixes
1 parent dffaa67 commit 4c6cab0

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

LearningHub.Nhs.WebUI/Scripts/vuesrc/notification/notification.vue

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<a href="#" @click="showNotification(notification)">{{ notification.title }}</a>
3131
</td>
3232
<td class="px-sm-3 py-sm-3">
33-
<div class="d-flex justify-content-between"
33+
<div class="d-flex justify-content-between"
3434
v-for="item in notificationTypeContent(notification.notificationType)">
3535
{{ item.text }}&nbsp;
3636
<i :class="item.className"></i>
@@ -45,7 +45,7 @@
4545
</td>
4646
<td class="px-sm-3 py-sm-3">
4747
<div class="d-flex justify-content-between" v-if="notification.userDismissable">
48-
<button data-target="#deleteModal" class="nhsuk-button nhsuk-u-margin-bottom-0" data-toggle="modal" @click="selectNotification(notification)">Delete</button>
48+
<button data-target="#deleteModal" class="nhsuk-button" data-toggle="modal" @click="selectNotification(notification)">Delete</button>
4949
</div>
5050
</td>
5151
</tr>
@@ -74,10 +74,7 @@
7474
<i :class="['fal fa-envelope' + (notification.readOnDate != null ? '-open text-success' : '')]">&nbsp;</i>
7575
<a href="#" @click="showNotification(notification)">{{ notification.title }}</a>
7676
</div>
77-
78-
<a href="#deleteModalButton" data-toggle="modal" @click="deleteNotification()" aria-label="Delete" v-if="notification.userDismissable">
79-
<i class="fas fa-ellipsis-h fa-lg" style="color: #435563;"></i>
80-
</a>
77+
<button data-target="#deleteModalButton" class="nhsuk-button" data-toggle="modal" @click="deleteNotification()" aria-label="Delete" v-if="notification.userDismissable">Delete</button>
8178
</div>
8279

8380
<paging v-bind="this.pagingModel" @loadPage="loadPage"></paging>
@@ -173,7 +170,7 @@
173170
.catch(e => console.log(e));
174171
}
175172
},
176-
async deleteNotification() {
173+
async deleteNotification() {
177174
await axios.delete(
178175
'/api/notification/' + this.selectedNotification.notificationId + '?userNotificationId=' + this.selectedNotification.id)
179176
.catch(e => console.log(e));

0 commit comments

Comments
 (0)