-
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.
* #34: adds reminder type config and display * #34: adds filtering option to reminder drawer * #34: stores and applies reminder filter to local storage * #34: adds info text to total reminder count --------- Co-authored-by: Dirk Peter <[email protected]>
- Loading branch information
1 parent
bbe2e55
commit 3d23f59
Showing
11 changed files
with
329 additions
and
16 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
1 change: 1 addition & 0 deletions
1
src/app/reminder-plugin/components/reminder-type/reminder-type.component.html
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 @@ | ||
{{ type?.name || 'Unknown' }} |
3 changes: 3 additions & 0 deletions
3
src/app/reminder-plugin/components/reminder-type/reminder-type.component.less
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,3 @@ | ||
:host { | ||
display: inline-block; | ||
} |
29 changes: 29 additions & 0 deletions
29
src/app/reminder-plugin/components/reminder-type/reminder-type.component.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,29 @@ | ||
import { Component, Input } from '@angular/core'; | ||
import { Reminder, ReminderType } from '../../reminder.model'; | ||
import { ReminderService } from '../../services'; | ||
|
||
@Component({ | ||
selector: 'c8y-reminder-type', | ||
templateUrl: './reminder-type.component.html', | ||
styleUrl: './reminder-type.component.less', | ||
}) | ||
export class ReminderTypeComponent { | ||
@Input() set reminder(reminder: Reminder) { | ||
this.setType(reminder.reminderType); | ||
} | ||
|
||
@Input() set id(reminderTypeID: ReminderType['id']) { | ||
this.setType(reminderTypeID); | ||
} | ||
|
||
type: ReminderType; | ||
|
||
constructor(private reminderService: ReminderService) {} | ||
|
||
private setType(id: ReminderType['id']) { | ||
this.type = { | ||
id, | ||
name: this.reminderService.getReminderTypeName(id), | ||
}; | ||
} | ||
} |
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
Oops, something went wrong.