OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix linter errors
Klaus Zanders205b9f48d190
diff --git a/frontend/src/turbo/history-action.ts b/frontend/src/turbo/history-action.tsindex 35b3ec9f9db..2eae55e35f2 100644--- a/frontend/src/turbo/history-action.ts+++ b/frontend/src/turbo/history-action.ts@@ -1,17 +1,19 @@import { StreamActions, StreamElement } from '@hotwired/turbo';export function registerHistoryAction() {- StreamActions.history = function historyStreamAction(this: StreamElement) {- const url = this.getAttribute("url");- const method = this.getAttribute("method");+ StreamActions.history = function historyStreamAction(this:StreamElement) {+ const url = this.getAttribute('url');+ const method = this.getAttribute('method');switch (method) {- case "replace":- window.history.replaceState({ href: url }, "", url)+ case 'replace':+ window.history.replaceState({ href: url }, '', url);break;- case "push":- window.history.pushState({ href: url }, "", url)+ case 'push':+ window.history.pushState({ href: url }, '', url);break;+ default:+ throw new Error(`Unknown history method: ${method}`);}};}diff --git a/frontend/src/turbo/setup.ts b/frontend/src/turbo/setup.tsindex ae6b928aec2..283c221917e 100644--- a/frontend/src/turbo/setup.ts+++ b/frontend/src/turbo/setup.ts@@ -19,8 +19,8 @@ registerHistoryAction();TurboPower.initialize(Turbo.StreamActions);// Error handling when "Content missing" returned-document.addEventListener('turbo:frame-missing', (event: CustomEvent) => {- const { detail: { response, visit } } = event as { detail: { response: Response, visit: (url: string) => void } };+document.addEventListener('turbo:frame-missing', (event:CustomEvent) => {+ const { detail: { response, visit } } = event as { detail:{ response:Response, visit:(url:string) => void } };event.preventDefault();visit(response.url);});