Skip to content

Commit

Permalink
feat(orga): rename stickCustomData into spaceBetweenTools
Browse files Browse the repository at this point in the history
  • Loading branch information
machestla committed Dec 20, 2024
1 parent c55d497 commit 8bb4cf2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion orga/app/components/places/title.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function todayDate() {
}

<template>
<PageTitle @stickCustomData={{true}}>
<PageTitle @spaceBetweenTools={{true}}>
<:title>
{{t "pages.places.title"}}
</:title>
Expand Down
2 changes: 1 addition & 1 deletion orga/app/components/statistics/index.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default class Statistics extends Component {
}

<template>
<PageTitle @stickCustomData={{true}}>
<PageTitle @spaceBetweenTools={{true}}>
<:title>
{{t "pages.statistics.title"}}
</:title>
Expand Down
6 changes: 3 additions & 3 deletions orga/app/components/ui/page-title.gjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function setTitleClasses(stickCustomData, centerTitle) {
function setTitleClasses(spaceBetweenTools, centerTitle) {
const classes = ['page-title__main'];

if (stickCustomData) classes.push('page-title__main--stick');
if (spaceBetweenTools) classes.push('page-title__main--stick');
if (centerTitle) classes.push('page-title__main--center');

return classes.join(' ');
Expand All @@ -12,7 +12,7 @@ function setTitleClasses(stickCustomData, centerTitle) {
{{#if (has-block "breadcrumb")}}
{{yield to="breadcrumb"}}
{{/if}}
<div class={{setTitleClasses @stickCustomData @centerTitle}}>
<div class={{setTitleClasses @spaceBetweenTools @centerTitle}}>
<h1 class="page-title__title">{{yield to="title"}}</h1>
{{#if (has-block "tools")}}
{{yield to="tools"}}
Expand Down

0 comments on commit 8bb4cf2

Please sign in to comment.