mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Fix not found text
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#-- encoding: UTF-8
|
||||
|
||||
#-- copyright
|
||||
# OpenProject is an open source project management software.
|
||||
# Copyright (C) 2012-2020 the OpenProject GmbH
|
||||
|
||||
@@ -63,8 +63,6 @@ module JobStatus
|
||||
##
|
||||
# Update the status code for a given job
|
||||
def upsert_status(status:, **args)
|
||||
upsert_attributes =
|
||||
|
||||
# Can't use upsert, as we only want to insert the user_id once
|
||||
# and not update it repeatedly
|
||||
resource = ::JobStatus::Status.find_or_initialize_by(job_id: job_id)
|
||||
|
||||
@@ -6,7 +6,7 @@ en:
|
||||
title: 'Background job status'
|
||||
redirect: 'You are being redirected.'
|
||||
generic_messages:
|
||||
not_found: 'This job could (no longer) be found.'
|
||||
not_found: 'This job could not be found.'
|
||||
in_queue: 'The job has been queued and will be processed shortly.'
|
||||
in_process: 'The job is currently being processed.'
|
||||
error: 'The job has failed to complete.'
|
||||
|
||||
@@ -39,6 +39,6 @@ describe 'Job status', type: :feature, js: true do
|
||||
visit '/job_statuses/something-that-does-not-exist'
|
||||
|
||||
expect(page).to have_selector('.icon-big.icon-help', wait: 10)
|
||||
expect(page).to have_content 'This job could (no longer) be found.'
|
||||
expect(page).to have_content I18n.t('js.job_status.generic_messages.not_found')
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user