From f10552bb7582a87d6676a3ff4a5812f2aae272b2 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Tue, 21 Jun 2022 10:21:27 -0700 Subject: [PATCH] adjustments/improvements to pinned versions --- frontend/src/i18n/locales/en.json | 9 ++-- .../versions/[version]/[platform]/index.vue | 16 ++++--- frontend/src/types/api/versions.d.ts | 3 +- frontend/src/types/enums.ts | 6 +++ frontend/src/types/generated/icons.d.ts | 23 ---------- .../internal/versions/HangarVersionsDAO.java | 12 +++++- .../hangar/db/dao/v1/VersionsApiDAO.java | 18 ++++++-- .../model/api/project/version/Version.java | 4 +- .../api/project/version/VersionCompact.java | 20 ++++++--- .../internal/versions/HangarVersion.java | 4 +- .../versions/PinnedVersionService.java | 1 + .../db/migration/V1.0.5__fixItAgain.sql | 42 +++++++++++++++++++ 12 files changed, 107 insertions(+), 51 deletions(-) create mode 100644 src/main/resources/db/migration/V1.0.5__fixItAgain.sql diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json index c08895554..a98d2d19e 100644 --- a/frontend/src/i18n/locales/en.json +++ b/frontend/src/i18n/locales/en.json @@ -481,13 +481,14 @@ "setRecommendedTooltip": "Set this version as recommended for {0} platform", "pinned": { "tooltip": { - "false": "Pin this version to the main project page", - "true": "Remove this pinned version from the main project page", + "none": "Pin this version to the main project page", + "version": "Remove this pinned version from the main project page", "channel": "This version is pinned via its channel" }, "button": { - "false": "Pin", - "true": "Unpin" + "none": "Pin", + "version": "Unpin", + "channel": "Unpin" }, "request": { "true": "Successfully pinned this version", diff --git a/frontend/src/pages/[user]/[project]/versions/[version]/[platform]/index.vue b/frontend/src/pages/[user]/[project]/versions/[version]/[platform]/index.vue index 95fe20e99..ea819faa8 100644 --- a/frontend/src/pages/[user]/[project]/versions/[version]/[platform]/index.vue +++ b/frontend/src/pages/[user]/[project]/versions/[version]/[platform]/index.vue @@ -1,5 +1,5 @@