@@ -34,7 +34,7 @@ export class EmailRequestCopyComponent implements OnInit {
3434 * Event emitter for sending the email
3535 */
3636 @Output ( ) send : EventEmitter < RequestCopyEmail > = new EventEmitter < RequestCopyEmail > ( ) ;
37- @Output ( ) selectedAccessPeriod : EventEmitter < number > = new EventEmitter ( ) ;
37+ @Output ( ) selectedAccessPeriod : EventEmitter < string > = new EventEmitter ( ) ;
3838
3939 /**
4040 * The subject of the email
@@ -49,12 +49,13 @@ export class EmailRequestCopyComponent implements OnInit {
4949 /**
5050 * A list of valid access periods to render in a drop-down menu
5151 */
52- @Input ( ) validAccessPeriods : number [ ] = [ ] ;
52+ @Input ( ) validAccessPeriods : string [ ] = [ ] ;
5353
5454 /**
55- * The selected access period
55+ * The selected access period, e.g. +7DAYS, +12MONTHS, FOREVER. These will be
56+ * calculated as a timestamp to store as the access expiry date for the requested item
5657 */
57- accessPeriod = 0 ;
58+ accessPeriod = 'FOREVER' ;
5859
5960 protected readonly hasValue = hasValue ;
6061
@@ -86,7 +87,7 @@ export class EmailRequestCopyComponent implements OnInit {
8687 * Update the access period when a dropdown menu button is clicked for a value
8788 * @param accessPeriod
8889 */
89- selectAccessPeriod ( accessPeriod : number ) {
90+ selectAccessPeriod ( accessPeriod : string ) {
9091 this . accessPeriod = accessPeriod ;
9192 this . selectedAccessPeriod . emit ( accessPeriod ) ;
9293 }
0 commit comments