diff --git a/client/src/app-components/ticket-list.js b/client/src/app-components/ticket-list.js
index 18293252..c3d95be4 100644
--- a/client/src/app-components/ticket-list.js
+++ b/client/src/app-components/ticket-list.js
@@ -17,6 +17,7 @@ class TicketList extends React.Component {
ticketPath: React.PropTypes.string,
showDepartmentDropdown: React.PropTypes.bool,
tickets: React.PropTypes.arrayOf(React.PropTypes.object),
+ userId: React.PropTypes.number,
type: React.PropTypes.oneOf([
'primary',
'secondary'
@@ -233,7 +234,15 @@ class TicketList extends React.Component {
}
isTicketUnread(ticket) {
- return (this.props.type === 'primary' && ticket.unread) || (this.props.type === 'secondary' && ticket.unreadStaff);
+ if(this.props.type === 'primary') {
+ return ticket.unread;
+ } else if(this.props.type === 'secondary') {
+ if(ticket.author.id == this.props.userId && ticket.author.staff) {
+ return ticket.unread;
+ } else {
+ return ticket.unreadStaff;
+ }
+ }
}
}
diff --git a/client/src/app-components/ticket-viewer.js b/client/src/app-components/ticket-viewer.js
index 14476b21..65cd7aa9 100644
--- a/client/src/app-components/ticket-viewer.js
+++ b/client/src/app-components/ticket-viewer.js
@@ -99,7 +99,7 @@ class TicketViewer extends React.Component {
{i18n('PRIORITY')}
-
{i18n('OWNED')}
+
{i18n('OWNER')}
{i18n('STATUS')}
@@ -107,9 +107,7 @@ class TicketViewer extends React.Component {
-
+ {this.renderEditableOwnerNode()}