-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring notification of successfully copy resource link to be thr…
…ough output emitter.
- Loading branch information
1 parent
0da36a1
commit ccace10
Showing
7 changed files
with
25 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
ontotext-yasgui-web-component/src/models/output-events/notification-message.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import {OutputEvent} from './output-event'; | ||
|
||
export enum NotificationMessageType { | ||
SUCCESS = 'success', | ||
ERROR = 'error', | ||
WARNING = 'warning' | ||
} | ||
|
||
export enum NotificationMessageCode { | ||
RESOURCE_LINK_COPIED_SUCCESSFULLY = 'resource_link_copied_successfully' | ||
} | ||
|
||
export class NotificationMessage extends OutputEvent { | ||
static OUTPUT_TYPE = 'notificationMessage' | ||
|
||
payload: any; | ||
constructor(code: NotificationMessageCode, messageType: NotificationMessageType, message: string) { | ||
super(NotificationMessage.OUTPUT_TYPE, {code, messageType, message}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters