Skip to content

Commit

Permalink
Merge pull request #1496 from bcgov/feature/vue3
Browse files Browse the repository at this point in the history
Vue3 for GMP/UMP
  • Loading branch information
arcshiftsolutions authored Jul 11, 2023
2 parents 602b1c1 + 6f1c9a1 commit f79bc0d
Show file tree
Hide file tree
Showing 21 changed files with 597 additions and 388 deletions.
13 changes: 4 additions & 9 deletions backend/src/components/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,13 @@ function getAllRequests(requestType) {
const statusFilters = req.query.statusFilters;

if (req.query.headerFilters) {
let headerFilters = JSON.parse(req.query.headerFilters);
let headerFilters = req.query.headerFilters;
Object.keys(headerFilters).forEach(element => {
let operation = 'like_ignore_case';
let valueType = 'STRING';
if (element === 'initialSubmitDate') {
headerFilters[element].forEach((date, index) => {
headerFilters[element][index] = date + 'T00:00:01';
});
if (headerFilters[element].length === 1) {
headerFilters[element].push(LocalDateTime.now().toString());
}
headerFilters[element] = headerFilters[element].join(',');
const submissionDate = headerFilters['initialSubmitDate'] + 'T00:00:01';
headerFilters[element] = submissionDate + ',' + LocalDateTime.now().toString();
operation = 'btn';
valueType = 'DATE_TIME';
}
Expand Down Expand Up @@ -132,7 +127,7 @@ function getRequestCommentById(requestType) {
name: (element.staffMemberName ? element.staffMemberName : 'Student'),
timestamp: readableTime,
color: (element.staffMemberIDIRGUID ? 'adminGreen' : 'studentBlue'),
icon: (element.staffMemberIDIRGUID ? '$question' : '$info')
icon: (element.staffMemberIDIRGUID ? 'mdi-help-circle' : 'mdi-alert-circle')
});
});
return res.status(200).json(response);
Expand Down
4 changes: 2 additions & 2 deletions backend/tests/unit/components/penRequests.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,15 @@ describe('getPenRequestCommentById', () => {
'participantId': '11',
'name': 'IDIR',
'color': 'adminGreen',
'icon': '$question',
'icon': 'mdi-help-circle',
'timestamp': '2020-03-18 2:22pm'
},
{
'content': 'Sending a student comment\n',
'participantId': '1',
'name': 'Student',
'color': 'studentBlue',
'icon': '$info',
'icon': 'mdi-alert-circle',
'timestamp': '2020-04-18 2:22pm'
}
]
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/components/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ export default {
background-color: #555;
}
.white--text{
color: white;
}
.v-toolbar /deep/ .v-toolbar__content {
padding-left: 20px !important;
}
Expand Down
Loading

0 comments on commit f79bc0d

Please sign in to comment.