From 40b9e9a21de2630a7300663318e3dd4f46acfffc Mon Sep 17 00:00:00 2001 From: Justin Littman Date: Fri, 17 Jan 2025 12:57:43 -0500 Subject: [PATCH] Rename persistent link. closes #404 --- app/components/dashboard/show/works_list_component.html.erb | 2 +- spec/components/dashboard/show/works_list_component_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/dashboard/show/works_list_component.html.erb b/app/components/dashboard/show/works_list_component.html.erb index 3951402b..d74ff5cc 100644 --- a/app/components/dashboard/show/works_list_component.html.erb +++ b/app/components/dashboard/show/works_list_component.html.erb @@ -2,7 +2,7 @@ id:, label:, show_label: false ) do |component| %> <% component.with_header( - headers: ['Recent deposits in collection', 'Deposit status', 'Owner', 'Last modified', 'Persistent link'] + headers: ['Recent deposits in collection', 'Deposit status', 'Owner', 'Last modified', 'Link for sharing'] ) %> <% works.each do |work| %> <% component.with_row(values: values_for(work), id: id_for(work)) %> diff --git a/spec/components/dashboard/show/works_list_component_spec.rb b/spec/components/dashboard/show/works_list_component_spec.rb index f2ebcf7b..9620b5cd 100644 --- a/spec/components/dashboard/show/works_list_component_spec.rb +++ b/spec/components/dashboard/show/works_list_component_spec.rb @@ -26,7 +26,7 @@ expect(table).to have_css('th', text: 'Deposit status') expect(table).to have_css('th', text: 'Owner') expect(table).to have_css('th', text: 'Last modified') - expect(table).to have_css('th', text: 'Persistent link') + expect(table).to have_css('th', text: 'Link for sharing') table_body = table.find('tbody') expect(table_body).to have_css('tr', count: 2) first_row = table_body.find('tr:nth-of-type(1)')