reference assignment name in arialabels in list view
fixes CNVS-22932 - Update the PublishIconView instantiated by AssignmentListItemView to provide cusom publishText & unpublishText that includes the assignment's name. - Update edit, delete & move links in the AssignmentListItem view to reference assignment's name. test plan: - Using NVDA, navigate the publish, edit, delete & move controls from the assignment list view and validate that the assignment name is included along with other text. Change-Id: I782363602b0cc4d7c176862103e1ded2b6314d6b Reviewed-on: https://gerrit.instructure.com/70229 Tested-by: Jenkins Reviewed-by: Ryan Taylor <rtaylor@instructure.com> Product-Review: Aaron Cannon <acannon@instructure.com> QA-Review: Michael Hargiss <mhargiss@instructure.com>
This commit is contained in:
parent
e1529eb1ae
commit
b131e30f0d
|
@ -405,7 +405,7 @@ define [
|
|||
unpublish: -> @save("published", false)
|
||||
|
||||
disabledMessage: ->
|
||||
I18n.t('cant_unpublish_when_students_submit', "Can't unpublish if there are student submissions")
|
||||
I18n.t("Can't unpublish %{name} if there are student submissions", name: @get('name'))
|
||||
|
||||
isOnlyVisibleToOverrides: (override_flag) ->
|
||||
return @get('only_visible_to_overrides') || false unless arguments.length > 0
|
||||
|
|
|
@ -69,7 +69,11 @@ define [
|
|||
@moveAssignmentView = false
|
||||
|
||||
if @canManage()
|
||||
@publishIconView = new PublishIconView(model: @model)
|
||||
@publishIconView = new PublishIconView({
|
||||
model: @model,
|
||||
publishText: I18n.t("Unpublished. Click to publish %{name}", name: @model.get('name')),
|
||||
unpublishText: I18n.t("Published. Click to unpublish %{name}", name: @model.get('name'))
|
||||
})
|
||||
@editAssignmentView = new CreateAssignmentView(model: @model)
|
||||
@moveAssignmentView = new MoveDialogView
|
||||
model: @model
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
href="#"
|
||||
class="edit_assignment icon-edit"
|
||||
id="assignment_{{id}}_settings_edit_item"
|
||||
aria-label="{{#t 'assignment_edit'}}Edit Assignment{{/t}}"
|
||||
aria-label="{{#t 'assignment_edit'}}Edit Assignment {{name}}{{/t}}"
|
||||
data-focus-returns-to="assign_{{id}}_manage_link"
|
||||
>{{#t "edit"}}Edit{{/t}}</a>
|
||||
</li>
|
||||
|
@ -104,7 +104,7 @@
|
|||
href="#"
|
||||
class="delete_assignment icon-trash"
|
||||
id="assignment_{{id}}_settings_delete_item"
|
||||
aria-label="{{#t 'assignment_delete'}}Delete Assignment{{/t}}"
|
||||
aria-label="{{#t 'assignment_delete'}}Delete Assignment {{name}}{{/t}}"
|
||||
data-focus-returns-to="assign_{{id}}_manage_link"
|
||||
>{{#t "delete"}}Delete{{/t}}</a>
|
||||
</li>
|
||||
|
@ -115,7 +115,7 @@
|
|||
href="#"
|
||||
class="move_assignment icon-updown"
|
||||
id="assignment_{{id}}_settings_move_item"
|
||||
aria-label='{{#t 'assignment_move'}}Move Assignment{{/t}}'
|
||||
aria-label='{{#t 'assignment_move'}}Move Assignment {{name}}{{/t}}'
|
||||
data-focus-returns-to="assign_{{id}}_manage_link"
|
||||
>{{#t "move"}}Move To…{{/t}}</a>
|
||||
</li>
|
||||
|
|
Loading…
Reference in New Issue