Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. <div class="flash-signal">
  2. Signal visuel :
  3. <input type="radio" name="flashsignal" id="flashsignal1" checked="checked" (click)="flashSignal()">
  4. <label for="flashsignal1">Oui</label>
  5. <input type="radio" name="flashsignal" id="flashsignal2" (click)="notFlashSignal()">
  6. <label for="flashsignal2">Non</label>
  7. </div>
  8.  
  9. export class ChatThreadsComponent implements OnInit {
  10.  
  11. flash = true;
  12.  
  13. constructor(public threadsService: ThreadsService,
  14. public messagesService: MessagesService,
  15. public boxService: BoxService) {
  16. this.threads = threadsService.orderedThreads;
  17. }
  18.  
  19. ngOnInit(): void {
  20. this.flash = true;
  21. }
  22.  
  23. notFlashSignal(): void {
  24. this.flash = false;
  25. }
  26.  
  27. flashSignal(): void {
  28. this.flash = true;
  29. }
  30. }
  31.  
  32. <div [ngClass]="{'notification-message-unread' : !box.thread.lastMessage.isRead && flash}">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement