|
1 | 1 | <template> |
2 | 2 | <v-sheet |
3 | | - class="d-flex flex-column align-center my-4 pa-4 flex-sm-row py-sm-0" |
| 3 | + class="d-flex flex-column align-center my-1 pa-4 flex-sm-row py-sm-0" |
| 4 | + :style="{ background: `linear-gradient(135deg in oklab, transparent 80%, ${backgroundColor} 100%)` }" |
4 | 5 | :elevation="$vuetify.breakpoint.xs ? 1 : 0" |
5 | 6 | > |
6 | 7 | <div class="d-flex"> |
@@ -165,6 +166,7 @@ import TimeAgo from 'javascript-time-ago' |
165 | 166 | import en from 'javascript-time-ago/locale/en.json' |
166 | 167 | import Vue, { PropType } from 'vue' |
167 | 168 |
|
| 169 | +import { isBeta, isStable } from '@/components/kraken/Utils' |
168 | 170 | import settings from '@/libs/settings' |
169 | 171 | import helper from '@/store/helper' |
170 | 172 | import { Dictionary } from '@/types/common' |
@@ -261,6 +263,18 @@ export default Vue.extend({ |
261 | 263 | && !this.updateAvailable && this.isFromBR && this.allImagesLoaded |
262 | 264 | && this.bootstrapVersion !== `${this.image.repository.split('/')[0]}/blueos-bootstrap:${this.image.tag}` |
263 | 265 | }, |
| 266 | + backgroundColor(): string { |
| 267 | + if (isStable(this.image.tag)) { |
| 268 | + return 'var(--v-success-base)' |
| 269 | + } |
| 270 | +
|
| 271 | + // 1.4 or anything like is our latest beta |
| 272 | + if (isBeta(this.image.tag) || /\d+\.\d+/.test(this.image.tag)) { |
| 273 | + return 'var(--v-warning-lighten2)' |
| 274 | + } |
| 275 | +
|
| 276 | + return 'var(--v-critical-base)' |
| 277 | + }, |
264 | 278 | }, |
265 | 279 | methods: { |
266 | 280 | asTimeAgo(value: string) { |
|
0 commit comments