Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public RecentQuote recentPackage(@RequestBody RecentQuote quote) {

@PostMapping("/register")
public RegisterQuote registerPackage(@RequestBody RegisterQuote quote) {
quote.setPost(LocalDate.now());
return registerQuoteRepository.save(quote);
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/main/src/app/body/body.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h3 class="dropdown-item-title">
<li class="nav-item dropdown">
<a class="nav-link" data-toggle="dropdown" href="#">
<i class="far fa-bell"></i>
<span class="badge badge-warning navbar-badge"></span>
<span class="badge badge-warning navbar-badge">3</span>
</a>
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
<span class="dropdown-item dropdown-header">15 Notifications</span>
Expand Down
3 changes: 3 additions & 0 deletions frontend/main/src/app/body/body.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export class BodyComponent implements OnInit {
constructor(public loginService:LoginserviceService) { }

ngOnInit(): void {



}

sair(){
Expand Down
16 changes: 16 additions & 0 deletions frontend/main/src/app/notification.service.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';

import { NotificationService } from './notification.service';

describe('NotificationService', () => {
let service: NotificationService;

beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(NotificationService);
});

it('should be created', () => {
expect(service).toBeTruthy();
});
});
13 changes: 13 additions & 0 deletions frontend/main/src/app/notification.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Injectable } from '@angular/core';
import { LoginserviceService } from './loginservice.service';

@Injectable({
providedIn: 'root'
})
export class NotificationService {

constructor(private login:LoginserviceService) { }



}