Skip to content

Commit fc3d18e

Browse files
[6.x] Use amber for update badges (#14175)
Co-authored-by: Jason Varga <jason@pixelfear.com>
1 parent e9aca9a commit fc3d18e

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

resources/js/components/UpdatesBadge.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<Badge v-if="count" :text="String(count)" color="red" size="sm" pill />
2+
<Badge v-if="count" :text="String(count)" color="amber" size="sm" pill />
33
</template>
44

55
<script>

resources/js/components/updater/Updater.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="max-w-page mx-auto">
33
<ui-header :title="name" icon="updates">
44
<template v-if="!gettingChangelog" #actions>
5-
<ui-badge :prepend="__('Version')" :text="currentVersion" color="green" size="lg" />
5+
<ui-badge :prepend="__('Version')" :text="currentVersion" :color="onLatestVersion ? 'green' : 'amber'" size="lg" />
66
<div v-if="onLatestVersion" v-text="__('Up to date')" />
77
</template>
88
</ui-header>

resources/js/components/updater/UpdaterWidget.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ defineProps({
1818
<Link :href="update.url" class="flex items-center gap-2" v-text="update.name" />
1919
</td>
2020
<td>
21-
<Badge pill :color="update.critical ? 'red' : 'green'" :text="update.count" />
21+
<Badge pill :color="update.critical ? 'red' : 'amber'" :text="update.count" />
2222
<div class="inline-flex" v-tooltip="__('Critical')">
2323
<Icon v-if="update.critical" name="warning-diamond" color="red" />
2424
</div>

resources/js/pages/updater/Index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ defineProps(['requestError', 'statamic', 'addons']);
3838
</TableCell>
3939
<TableCell>{{ statamic.currentVersion }}</TableCell>
4040
<TableCell v-if="statamic.availableUpdatesCount" class="text-right">
41-
<Badge size="sm" color="green">{{ __n('1 update|:count updates', statamic.availableUpdatesCount) }}</Badge>
41+
<Badge size="sm" color="amber">{{ __n('1 update|:count updates', statamic.availableUpdatesCount) }}</Badge>
4242
</TableCell>
4343
<TableCell v-else class="text-right">{{ __('Up to date') }}</TableCell>
4444
</TableRow>
@@ -63,7 +63,7 @@ defineProps(['requestError', 'statamic', 'addons']);
6363
</TableCell>
6464
<TableCell>{{ addon.version }}</TableCell>
6565
<TableCell v-if="addon.availableUpdatesCount" class="text-right">
66-
<Badge size="sm" color="green">{{ __n('1 update|:count updates', addon.availableUpdatesCount) }}</Badge>
66+
<Badge size="sm" color="amber">{{ __n('1 update|:count updates', addon.availableUpdatesCount) }}</Badge>
6767
</TableCell>
6868
<TableCell v-else class="text-right">{{ __('Up to date') }}</TableCell>
6969
</TableRow>

0 commit comments

Comments
 (0)