diff --git a/app/components/assign-students.hbs b/app/components/assign-students.hbs index 8d31504c62..971ebc20b2 100644 --- a/app/components/assign-students.hbs +++ b/app/components/assign-students.hbs @@ -78,10 +78,10 @@ {{#each this.filteredStudents as |user|}} - + diff --git a/app/components/bulk-new-users.hbs b/app/components/bulk-new-users.hbs index b4dd5a3e34..d2631cc6f8 100644 --- a/app/components/bulk-new-users.hbs +++ b/app/components/bulk-new-users.hbs @@ -118,7 +118,7 @@ type="checkbox" checked={{and (v-get obj "isValid") - (contains obj selectedUsers) + (includes obj selectedUsers) }} onclick={{action "toggleUserSelection" obj}} disabled={{v-get obj "isInvalid"}} diff --git a/app/components/curriculum-inventory-report-header.hbs b/app/components/curriculum-inventory-report-header.hbs index 2afe176e75..c1c7b719c9 100644 --- a/app/components/curriculum-inventory-report-header.hbs +++ b/app/components/curriculum-inventory-report-header.hbs @@ -19,7 +19,7 @@ {{#if (and (v-get this "reportName" "isInvalid") - (contains "reportName" showErrorsFor) + (includes "reportName" showErrorsFor) ) }} diff --git a/app/components/curriculum-inventory-report-overview.hbs b/app/components/curriculum-inventory-report-overview.hbs index cd2aa35820..fec3dedff3 100644 --- a/app/components/curriculum-inventory-report-overview.hbs +++ b/app/components/curriculum-inventory-report-overview.hbs @@ -51,7 +51,7 @@ {{#if (and (v-get this "startDate" "isInvalid") - (contains "startDate" showErrorsFor) + (includes "startDate" showErrorsFor) ) }} @@ -83,7 +83,7 @@ {{#if (and (v-get this "endDate" "isInvalid") - (contains "endDate" showErrorsFor) + (includes "endDate" showErrorsFor) ) }} @@ -152,7 +152,7 @@ {{#if (and (v-get this "description" "isInvalid") - (contains "description" showErrorsFor) + (includes "description" showErrorsFor) ) }} diff --git a/app/components/curriculum-inventory-report-rollover.hbs b/app/components/curriculum-inventory-report-rollover.hbs index 9dfc9710ad..5e7f7e8a34 100644 --- a/app/components/curriculum-inventory-report-rollover.hbs +++ b/app/components/curriculum-inventory-report-rollover.hbs @@ -20,7 +20,7 @@ onkeyup={{action "addErrorDisplayFor" "name"}} placeholder={{t "general.reportNamePlaceholder"}} > - {{#if (and (v-get this "name" "isInvalid") (contains "name" showErrorsFor))}} + {{#if (and (v-get this "name" "isInvalid") (includes "name" showErrorsFor))}} {{v-get this "name" "message"}} diff --git a/app/components/curriculum-inventory-sequence-block-min-max-editor.hbs b/app/components/curriculum-inventory-sequence-block-min-max-editor.hbs index b5f20a8c9d..2db43f7297 100644 --- a/app/components/curriculum-inventory-sequence-block-min-max-editor.hbs +++ b/app/components/curriculum-inventory-sequence-block-min-max-editor.hbs @@ -9,7 +9,7 @@ disabled={{or isSaving isElective}} onkeyup={{action "addErrorDisplayFor" "minimum"}} > - {{#if (and (v-get this "minimum" "isInvalid") (contains "minimum" showErrorsFor)) + {{#if (and (v-get this "minimum" "isInvalid") (includes "minimum" showErrorsFor)) }} {{v-get this "minimum" "message"}} @@ -27,7 +27,7 @@ disabled={{isSaving}} onkeyup={{action "addErrorDisplayFor" "maximum"}} > - {{#if (and (v-get this "maximum" "isInvalid") (contains "maximum" showErrorsFor)) + {{#if (and (v-get this "maximum" "isInvalid") (includes "maximum" showErrorsFor)) }} {{v-get this "maximum" "message"}} diff --git a/app/components/curriculum-inventory-sequence-block-session-list.hbs b/app/components/curriculum-inventory-sequence-block-session-list.hbs index e33677eaf3..1cbb7a7762 100644 --- a/app/components/curriculum-inventory-sequence-block-session-list.hbs +++ b/app/components/curriculum-inventory-sequence-block-session-list.hbs @@ -51,14 +51,14 @@ {{if - (contains session linkedSessions) + (includes session linkedSessions) (t "general.yes") (t "general.no") }} {{if - (contains session excludedSessions) + (includes session excludedSessions) (t "general.yes") (t "general.no") }} @@ -75,7 +75,7 @@ {{get (await session.sessionType) "title"}} - {{#if (contains session linkedSessions)}} + {{#if (includes session linkedSessions)}} {{#if (is-pending session.maxDuration)}} {{else}} diff --git a/app/components/curriculum-inventory-sequence-block-session-manager.hbs b/app/components/curriculum-inventory-sequence-block-session-manager.hbs index 1936832517..e190cc47f3 100644 --- a/app/components/curriculum-inventory-sequence-block-session-manager.hbs +++ b/app/components/curriculum-inventory-sequence-block-session-manager.hbs @@ -75,14 +75,14 @@ @@ -98,7 +98,7 @@ {{get (await session.sessionType) "title"}} - {{#if (contains session linkedSessionsBuffer)}} + {{#if (includes session linkedSessionsBuffer)}} {{#if (is-pending session.maxDuration)}} {{else}} diff --git a/app/components/global-search.hbs b/app/components/global-search.hbs index e36802d9b4..a7e570ee20 100644 --- a/app/components/global-search.hbs +++ b/app/components/global-search.hbs @@ -55,7 +55,7 @@ type="checkbox" checked={{or (eq obj.results 0) - (not (contains obj.id ignoredSchoolIds)) + (not (includes obj.id ignoredSchoolIds)) }} onclick={{action "toggleSchoolSelection" obj.id}} disabled={{eq obj.results 0}} diff --git a/app/components/ilios-course-list.hbs b/app/components/ilios-course-list.hbs index 803ce9d563..6bb24754a7 100644 --- a/app/components/ilios-course-list.hbs +++ b/app/components/ilios-course-list.hbs @@ -62,7 +62,7 @@ {{#each (sort-by (if this.sortingByStatus (fn this.sortCoursesByStatus) @sortBy) @courses) as |course|}} @@ -89,7 +89,7 @@ {{moment-format course.endDate "L"}} - {{#if (contains course.id this.savingCourseIds)}} + {{#if (includes course.id this.savingCourseIds)}} {{else}} @@ -122,7 +122,7 @@ {{/if}} - {{#if (contains course.id this.coursesForRemovalConfirmation)}} + {{#if (includes course.id this.coursesForRemovalConfirmation)}}
diff --git a/app/components/instructorgroup-header.hbs b/app/components/instructorgroup-header.hbs index b2f16ac2a2..f026e77001 100644 --- a/app/components/instructorgroup-header.hbs +++ b/app/components/instructorgroup-header.hbs @@ -21,7 +21,7 @@ disabled={{isSaving}} onkeyup={{action "addErrorDisplayFor" "title"}} > - {{#if (and (v-get this "title" "isInvalid") (contains "title" showErrorsFor)) + {{#if (and (v-get this "title" "isInvalid") (includes "title" showErrorsFor)) }} {{v-get this "title" "message"}} diff --git a/app/components/learnergroup-cohort-user-manager.hbs b/app/components/learnergroup-cohort-user-manager.hbs index 1b2e3246c0..ee85e4607c 100644 --- a/app/components/learnergroup-cohort-user-manager.hbs +++ b/app/components/learnergroup-cohort-user-manager.hbs @@ -54,7 +54,7 @@ {{#if @canUpdate}} {{/if}} @@ -78,7 +78,7 @@ {{#if user.enabled}} - {{#if (contains user this.usersBeingMoved)}} + {{#if (includes user this.usersBeingMoved)}} {{else if (and @canUpdate (eq this.selectedUsers.length 0))}} {{#if - (and (v-get this "title" "isInvalid") (contains "title" showErrorsFor)) + (and (v-get this "title" "isInvalid") (includes "title" showErrorsFor)) }} {{v-get this "title" "message"}} diff --git a/app/components/learnergroup-list.hbs b/app/components/learnergroup-list.hbs index 2f13a83d2e..85df1816d9 100644 --- a/app/components/learnergroup-list.hbs +++ b/app/components/learnergroup-list.hbs @@ -38,7 +38,7 @@ {{#each (sort-by this.sortBy @learnerGroups) as |learnerGroup|}} - {{#if (contains learnerGroup this.preparingToRemove)}} + {{#if (includes learnerGroup this.preparingToRemove)}} {{else}} @@ -93,7 +93,7 @@ {{/if}} - {{#if (contains learnerGroup.id (map-by "id" this.toRemove))}} + {{#if (includes learnerGroup.id (map-by "id" this.toRemove))}} {{#let (find-by "id" learnerGroup.id this.toRemove) as |removableGroup|}} @@ -143,7 +143,7 @@ {{/let}} {{/if}} - {{#if (contains learnerGroup this.toCopy)}} + {{#if (includes learnerGroup this.toCopy)}}
diff --git a/app/components/learnergroup-summary.hbs b/app/components/learnergroup-summary.hbs index 79ab3f076b..a367bfccda 100644 --- a/app/components/learnergroup-summary.hbs +++ b/app/components/learnergroup-summary.hbs @@ -28,7 +28,7 @@ {{#if (and (v-get this "location" "isInvalid") - (contains "location" showErrorsFor) + (includes "location" showErrorsFor) ) }} diff --git a/app/components/learnergroup-user-manager.hbs b/app/components/learnergroup-user-manager.hbs index 58cf13c832..8aacdafd61 100644 --- a/app/components/learnergroup-user-manager.hbs +++ b/app/components/learnergroup-user-manager.hbs @@ -75,7 +75,7 @@ {{#if @isEditing}} {{/if}} @@ -108,7 +108,7 @@ - {{#if (contains user.content this.usersBeingMoved)}} + {{#if (includes user.content this.usersBeingMoved)}} {{else if user.enabled}} {{#if (eq this.selectedUsers.length 0)}} @@ -144,7 +144,7 @@ {{#if @isEditing}} {{/if}} @@ -177,7 +177,7 @@ - {{#if (contains user.content this.usersBeingMoved)}} + {{#if (includes user.content this.usersBeingMoved)}} {{else if user.enabled}} {{#if (eq this.selectedUsers.length 0)}} diff --git a/app/components/new-competency.hbs b/app/components/new-competency.hbs index 514928cd69..114d0f9f08 100644 --- a/app/components/new-competency.hbs +++ b/app/components/new-competency.hbs @@ -12,7 +12,7 @@ {{t "general.add"}} {{/if}} -{{#if (and (v-get this "title" "isInvalid") (contains "title" showErrorsFor))}} +{{#if (and (v-get this "title" "isInvalid") (includes "title" showErrorsFor))}} {{v-get this "title" "message"}} diff --git a/app/components/new-course.hbs b/app/components/new-course.hbs index af19bfae74..2ef097739f 100644 --- a/app/components/new-course.hbs +++ b/app/components/new-course.hbs @@ -17,7 +17,7 @@ onkeyup={{action "addErrorDisplayFor" "title"}} > {{#if - (and (v-get this "title" "isInvalid") (contains "title" this.showErrorsFor)) + (and (v-get this "title" "isInvalid") (includes "title" this.showErrorsFor)) }} {{v-get this "title" "message"}} diff --git a/app/components/new-curriculum-inventory-report.hbs b/app/components/new-curriculum-inventory-report.hbs index a33866ac95..453c7e6b21 100644 --- a/app/components/new-curriculum-inventory-report.hbs +++ b/app/components/new-curriculum-inventory-report.hbs @@ -16,7 +16,7 @@ onkeyup={{action "addErrorDisplayFor" "name"}} placeholder={{t "general.reportNamePlaceholder"}} > - {{#if (and (v-get this "name" "isInvalid") (contains "name" showErrorsFor))}} + {{#if (and (v-get this "name" "isInvalid") (includes "name" showErrorsFor))}} {{v-get this "name" "message"}} diff --git a/app/components/new-curriculum-inventory-sequence-block.hbs b/app/components/new-curriculum-inventory-sequence-block.hbs index 8667950461..3a6ce1c115 100644 --- a/app/components/new-curriculum-inventory-sequence-block.hbs +++ b/app/components/new-curriculum-inventory-sequence-block.hbs @@ -15,7 +15,7 @@ onkeyup={{action "addErrorDisplayFor" "title"}} placeholder={{t "general.sequenceBlockTitlePlaceholder"}} > - {{#if (and (v-get this "title" "isInvalid") (contains "title" showErrorsFor)) + {{#if (and (v-get this "title" "isInvalid") (includes "title" showErrorsFor)) }} {{v-get this "title" "message"}} @@ -87,7 +87,7 @@ /> {{#if (and - (v-get this "startDate" "isInvalid") (contains "startDate" showErrorsFor) + (v-get this "startDate" "isInvalid") (includes "startDate" showErrorsFor) ) }} @@ -105,7 +105,7 @@ data-test-end-date-picker /> {{#if - (and (v-get this "endDate" "isInvalid") (contains "endDate" showErrorsFor)) + (and (v-get this "endDate" "isInvalid") (includes "endDate" showErrorsFor)) }} {{v-get this "endDate" "message"}} @@ -125,7 +125,7 @@ > {{#if (and - (v-get this "duration" "isInvalid") (contains "duration" showErrorsFor) + (v-get this "duration" "isInvalid") (includes "duration" showErrorsFor) ) }} @@ -156,7 +156,7 @@ onkeyup={{action "addErrorDisplayFor" "minimum"}} > {{#if - (and (v-get this "minimum" "isInvalid") (contains "minimum" showErrorsFor)) + (and (v-get this "minimum" "isInvalid") (includes "minimum" showErrorsFor)) }} {{v-get this "minimum" "message"}} @@ -175,7 +175,7 @@ onkeyup={{action "addErrorDisplayFor" "maximum"}} > {{#if - (and (v-get this "maximum" "isInvalid") (contains "maximum" showErrorsFor)) + (and (v-get this "maximum" "isInvalid") (includes "maximum" showErrorsFor)) }} {{v-get this "maximum" "message"}} diff --git a/app/components/new-directory-user.hbs b/app/components/new-directory-user.hbs index adaafe01f2..b8cb782cb5 100644 --- a/app/components/new-directory-user.hbs +++ b/app/components/new-directory-user.hbs @@ -68,7 +68,7 @@ onkeyup={{action "addErrorDisplayFor" "otherId"}} > {{#if - (and (v-get this "otherId" "isInvalid") (contains "otherId" showErrorsFor)) + (and (v-get this "otherId" "isInvalid") (includes "otherId" showErrorsFor)) }} {{v-get this "otherId" "message"}} @@ -88,7 +88,7 @@ > {{#if (and - (v-get this "username" "isInvalid") (contains "username" showErrorsFor) + (v-get this "username" "isInvalid") (includes "username" showErrorsFor) ) }} @@ -114,7 +114,7 @@ > {{#if (and - (v-get this "password" "isInvalid") (contains "password" showErrorsFor) + (v-get this "password" "isInvalid") (includes "password" showErrorsFor) ) }} diff --git a/app/components/new-instructorgroup.hbs b/app/components/new-instructorgroup.hbs index ea3ceecd4d..f961b1121c 100644 --- a/app/components/new-instructorgroup.hbs +++ b/app/components/new-instructorgroup.hbs @@ -15,7 +15,7 @@ placeholder={{t "general.instructorGroupTitlePlaceholder"}} data-test-title > - {{#if (and (v-get this "title" "isInvalid") (contains "title" showErrorsFor))}} + {{#if (and (v-get this "title" "isInvalid") (includes "title" showErrorsFor))}} {{v-get this "title" "message"}} diff --git a/app/components/new-learnergroup-multiple.hbs b/app/components/new-learnergroup-multiple.hbs index adb693a8fa..a32261c751 100644 --- a/app/components/new-learnergroup-multiple.hbs +++ b/app/components/new-learnergroup-multiple.hbs @@ -19,7 +19,7 @@ {{#if (and (v-get this "numSubGroups" "isInvalid") - (contains "numSubGroups" showErrorsFor) + (includes "numSubGroups" showErrorsFor) ) }} diff --git a/app/components/new-learnergroup-single.hbs b/app/components/new-learnergroup-single.hbs index 7856ddcf4a..69cd503f9e 100644 --- a/app/components/new-learnergroup-single.hbs +++ b/app/components/new-learnergroup-single.hbs @@ -11,7 +11,7 @@ placeholder={{t "general.learnerGroupTitlePlaceholder"}} data-test-title > - {{#if (and (v-get this "title" "isInvalid") (contains "title" showErrorsFor))}} + {{#if (and (v-get this "title" "isInvalid") (includes "title" showErrorsFor))}} {{v-get this "title" "message"}} diff --git a/app/components/new-myreport.hbs b/app/components/new-myreport.hbs index f82d31006d..70da2484f3 100644 --- a/app/components/new-myreport.hbs +++ b/app/components/new-myreport.hbs @@ -14,7 +14,7 @@ onkeyup={{action "addErrorDisplayFor" "title"}} data-test-report-title > - {{#if (and (v-get this "title" "isInvalid") (contains "title" showErrorsFor))}} + {{#if (and (v-get this "title" "isInvalid") (includes "title" showErrorsFor))}} {{v-get this "title" "message"}} @@ -80,7 +80,7 @@

{{#if this.currentPrepositionalObject}} - {{#if (contains this.currentPrepositionalObject (w "course session"))}} + {{#if (includes this.currentPrepositionalObject (w "course session"))}} @@ -59,7 +59,7 @@