From a1c39483ef9e0bc0b7599f3daed4b2495af9f04c Mon Sep 17 00:00:00 2001 From: leiyre Date: Fri, 17 Mar 2023 18:46:33 +0100 Subject: [PATCH] feat: Automate the year in copyright (#2572) # Description This PR includes an automation to calculate the year in copyright See #2569 **Type of change** - [x] Improvement (change adding some improvement to an existing functionality) **How Has This Been Tested** **Checklist** - [x] I have merged the original branch into my forked branch - [ ] I added relevant documentation - [x] follows the style guidelines of this project - [x] I did a self-review of my code - [ ] I made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/) --- frontend/components/commons/header/user/user.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/components/commons/header/user/user.vue b/frontend/components/commons/header/user/user.vue index 1b8c820f70..1d4f6365cc 100644 --- a/frontend/components/commons/header/user/user.vue +++ b/frontend/components/commons/header/user/user.vue @@ -16,7 +16,9 @@ Log out - © 2022 Argilla ({{ appVersion }}) + © {{ currentYear }} Argilla ({{ appVersion }}) @@ -36,6 +38,12 @@ export default { user() { return this.$auth.user; }, + currentYear() { + return this.currentDate.getFullYear(); + }, + currentDate() { + return new Date(); + }, }, async fetch() { this.appVersion = await this.getAppVersion();