]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+my-account/my-account-notifications/my-account-notifications.component.html
adapt notifications buttons for small screens
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-notifications / my-account-notifications.component.html
index 0727f90e88d926171c7e30cfa5240fd54ea69b12..a60ed885da7129e32d6682db254e0d47e71464c2 100644 (file)
@@ -5,11 +5,11 @@
     Notification preferences
   </a>
 
-  <div class="peertube-select-container peertube-select-button ml-2">
-    <select [(ngModel)]="notificationSortType" (ngModelChange)="onNotificationSortTypeChanged()" class="form-control">
+  <div class="peertube-select-container peertube-select-button ml-2 mr-2">
+    <select [(ngModel)]="notificationSortType" (ngModelChange)="onChangeSortColumn()" class="form-control">
       <option value="undefined" disabled>Sort by</option>
-      <option value="created" i18n>Newest first</option>
-      <option value="unread-created" i18n>Unread first</option>
+      <option value="createdAt" i18n>Newest first</option>
+      <option value="read" [disabled]="!hasUnreadNotifications()" i18n>Unread first</option>
     </select>
   </div>