Skip to content

Commit

Permalink
refactor: soft down info buttons in update manager (#1513)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou authored Aug 9, 2023
1 parent 69eaeb6 commit 16165ec
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
28 changes: 16 additions & 12 deletions src/components/panels/Machine/UpdatePanel/Entry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<strong>{{ repo.name }}</strong>
<br />
<template v-if="type === 'git_repo' && commitsBehind.length">
<a class="primary--text cursor--pointer" @click="boolShowCommitList = true">
<v-icon small color="primary" class="mr-1">{{ mdiInformation }}</v-icon>
<a class="info--text cursor--pointer" @click="boolShowCommitList = true">
<v-icon small color="info" class="mr-1">{{ mdiUpdate }}</v-icon>
{{ versionOutput }}
</a>
</template>
<template v-else-if="type === 'web' && webUpdatable">
<a class="primary--text text-decoration-none" :href="webLinkRelease" target="_blank">
<v-icon small color="primary" class="mr-1">{{ mdiInformation }}</v-icon>
<a class="info--text text-decoration-none" :href="webLinkRelease" target="_blank">
<v-icon small color="info" class="mr-1">{{ mdiUpdate }}</v-icon>
{{ versionOutput }}
</a>
</template>
Expand All @@ -23,11 +23,11 @@
v-if="anomalies.length > 0"
small
label
outlined
color="primary"
:outlined="!toggleAnomalies"
color="grey"
class="minwidth-0 px-1 mr-2"
@click="toggleAnomalies = !toggleAnomalies">
<v-icon small>{{ mdiInformation }}</v-icon>
<v-icon small>{{ toggleAnomalies ? mdiInformationOutline : mdiInformation }}</v-icon>
</v-chip>
<template v-if="!isValid">
<v-menu :offset-y="true">
Expand Down Expand Up @@ -85,12 +85,12 @@
<v-alert
v-for="(message, index) in warnings"
:key="'warnings_' + index"
text
dense
border="left"
text
color="orange"
border="left"
:icon="mdiCloseCircle">
{{ message }}
<p class="text--disabled mb-0">{{ message }}</p>
</v-alert>
</v-col>
</v-row>
Expand All @@ -99,10 +99,10 @@
<v-alert
v-for="(message, index) in anomalies"
:key="'anomalies_' + index"
text
dense
text
color="grey"
border="left"
color="info"
:icon="mdiInformation">
{{ message }}
</v-alert>
Expand Down Expand Up @@ -131,9 +131,11 @@ import {
mdiCheck,
mdiHelpCircleOutline,
mdiInformation,
mdiInformationOutline,
mdiMenuDown,
mdiProgressUpload,
mdiReload,
mdiUpdate,
} from '@mdi/js'
import semver from 'semver'
import GitCommitsList from '@/components/panels/Machine/UpdatePanel/GitCommitsList.vue'
Expand All @@ -146,6 +148,8 @@ export default class UpdatePanelEntry extends Mixins(BaseMixin) {
mdiMenuDown = mdiMenuDown
mdiReload = mdiReload
mdiCloseCircle = mdiCloseCircle
mdiUpdate = mdiUpdate
mdiInformationOutline = mdiInformationOutline
boolShowCommitList = false
boolShowUpdateHint = false
Expand Down
4 changes: 2 additions & 2 deletions src/components/panels/Machine/UpdatePanel/EntrySystem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<strong>{{ $t('Machine.UpdatePanel.System') }}</strong>
<br />
<template v-if="package_count">
<a class="primary--text cursor--pointer" @click="boolShowPackageList = true">
<v-icon small color="primary" class="mr-1">{{ mdiInformation }}</v-icon>
<a class="info--text cursor--pointer" @click="boolShowPackageList = true">
<v-icon small color="info" class="mr-1">{{ mdiInformation }}</v-icon>
{{ $t('Machine.UpdatePanel.CountPackagesCanBeUpgraded', { count: package_count }) }}
</a>
</template>
Expand Down

0 comments on commit 16165ec

Please sign in to comment.