Skip to content

Commit

Permalink
fix: Move version information to first page
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Aug 29, 2024
1 parent cb52cb5 commit de82b07
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/components/pages/AboutNextcloud.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
<Card href="https://nextcloud.com/enterprise/"
:title="t('firstrunwizard', 'For large organisations ↗')"
:subtitle="t('firstrunwizard', 'Get Nextcloud Enterprise for mission critical environments where advanced security and compliance are important.')" />

<p :class="$style.version">
{{ versionNumber }}
</p>
</WizardPage>
</template>

Expand All @@ -29,14 +25,4 @@ import { translate as t } from '@nextcloud/l10n'
import Card from '../Card.vue'
import WizardPage from '../WizardPage.vue'
const versionNumber = t('firstrunwizard', 'This Nextcloud is on version {version}', { version: window.OC.config.versionstring })
</script>

<style module>
.version {
color: var(--color-text-maxcontrast);
margin-block: calc(var(--default-grid-baseline) * 4) 0;
text-align: center;
}
</style>
12 changes: 12 additions & 0 deletions src/components/pages/KeyNotes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
:subtitle="t('firstrunwizard', 'Enjoy constant improvements from a thriving open-source community.')">
<NcIconSvgWrapper :class="$style.icon" inline :path="mdiAccountGroup" />
</Card>

<p :class="$style.version">
{{ versionNumber }}
</p>
</WizardPage>
</template>

Expand All @@ -36,10 +40,18 @@ import WizardPage from '../WizardPage.vue'
defineProps<{
scrollerClasses?: string | string[] | Record<string, boolean>
}>()
const versionNumber = t('firstrunwizard', 'This Nextcloud is on version {version}', { version: window.OC.config.versionstring })
</script>

<style module>
.icon {
margin-block: calc((1lh - 20px) / 2);
}
.version {
color: var(--color-text-maxcontrast);
margin-block: calc(var(--default-grid-baseline) * 4) 0;
text-align: center;
}
</style>

0 comments on commit de82b07

Please sign in to comment.