diff --git a/ui/.eslintignore b/ui/.eslintignore index e55ff402d3..df54ff075c 100644 --- a/ui/.eslintignore +++ b/ui/.eslintignore @@ -31,5 +31,3 @@ src/app/editor src/app/files src/app/info src/app/login -src/app/notifications -src/app/NS \ No newline at end of file diff --git a/ui/.prettierignore b/ui/.prettierignore index 134205dda5..4b0f32f39f 100644 --- a/ui/.prettierignore +++ b/ui/.prettierignore @@ -31,5 +31,3 @@ src/app/editor src/app/files src/app/info src/app/login -src/app/notifications -src/app/NS \ No newline at end of file diff --git a/ui/src/app/NS/XS.service.spec.ts b/ui/src/app/NS/XS.service.spec.ts index aab2c38783..6db8f577a6 100644 --- a/ui/src/app/NS/XS.service.spec.ts +++ b/ui/src/app/NS/XS.service.spec.ts @@ -19,16 +19,16 @@ import { XsService } from './xs.service'; describe('XSService', () => { - const service: XsService = new XsService(); + const service: XsService = new XsService(); - it('should get string XS String', () => { - expect(service.XS_STRING).toBe('xs:string'); - }); + it('should get string XS String', () => { + expect(service.XS_STRING).toBe('xs:string'); + }); - it('should check for numbers', () => { - expect(service.isNumber(service.XS_DOUBLE)).toBeTrue(); - expect(service.isNumber(service.XS_INTEGER)).toBeTrue(); - expect(service.isNumber(service.XS_NUMBER)).toBeTrue(); - expect(service.isNumber(service.XS_STRING)).toBeFalse(); - }); + it('should check for numbers', () => { + expect(service.isNumber(service.XS_DOUBLE)).toBeTrue(); + expect(service.isNumber(service.XS_INTEGER)).toBeTrue(); + expect(service.isNumber(service.XS_NUMBER)).toBeTrue(); + expect(service.isNumber(service.XS_STRING)).toBeFalse(); + }); }); diff --git a/ui/src/app/NS/xs.service.ts b/ui/src/app/NS/xs.service.ts index 77986e0d63..a8eea881e3 100644 --- a/ui/src/app/NS/xs.service.ts +++ b/ui/src/app/NS/xs.service.ts @@ -20,19 +20,19 @@ import { Injectable } from '@angular/core'; @Injectable() export class XsService { + XS_STRING = 'xs:string'; + XS_INTEGER = 'http://www.w3.org/2001/XMLSchema#integer'; + XS_DOUBLE = 'http://www.w3.org/2001/XMLSchema#double'; + XS_BOOLEAN = 'http://www.w3.org/2001/XMLSchema#boolean'; + XS_NUMBER = 'http://www.w3.org/2001/XMLSchema#number'; + XS_STRING1 = 'http://www.w3.org/2001/XMLSchema#string'; + SO_URL = 'https://schema.org/URL'; - XS_STRING = 'xs:string'; - XS_INTEGER = 'http://www.w3.org/2001/XMLSchema#integer'; - XS_DOUBLE = 'http://www.w3.org/2001/XMLSchema#double'; - XS_BOOLEAN = 'http://www.w3.org/2001/XMLSchema#boolean'; - XS_NUMBER = 'http://www.w3.org/2001/XMLSchema#number'; - XS_STRING1 = 'http://www.w3.org/2001/XMLSchema#string'; - SO_URL = 'https://schema.org/URL'; - - isNumber(datatype: string): boolean { - return datatype === this.XS_DOUBLE || - datatype === this.XS_INTEGER || - datatype === this.XS_NUMBER; - } - + isNumber(datatype: string): boolean { + return ( + datatype === this.XS_DOUBLE || + datatype === this.XS_INTEGER || + datatype === this.XS_NUMBER + ); + } } diff --git a/ui/src/app/notifications/components/notification-item.component.html b/ui/src/app/notifications/components/notification-item.component.html index 1f8786d943..6b7cbc151a 100644 --- a/ui/src/app/notifications/components/notification-item.component.html +++ b/ui/src/app/notifications/components/notification-item.component.html @@ -18,11 +18,12 @@
{{existingNotification.notificationTitle}}
+{{ existingNotification.notificationTitle }}