Skip to content

Commit 52a2256

Browse files
committed
fix: version states & add tooltip for brevity
1 parent 65533d5 commit 52a2256

1 file changed

Lines changed: 34 additions & 4 deletions

File tree

src/components/VersionStatus.vue

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,39 @@
11
<template>
22
<div>
3-
<v-chip v-if="!hasUpdate" x-small label outlined color="success">UP TO DATE</v-chip>
4-
<v-chip v-if="dirty" x-small label outlined color="error">DIRTY REPO</v-chip>
5-
<v-chip v-if="!valid" x-small label outlined color="error">INVALID REPO</v-chip>
6-
<v-btn v-if="hasUpdate && !dirty && valid" :disabled="disabled" :loading="loading" x-small text color="warning" @click="$emit('on-update')">UPDATE</v-btn>
3+
<v-chip v-if="!hasUpdate && (!dirty && valid)" x-small label outlined color="success">UP TO DATE</v-chip>
4+
<v-tooltip left>
5+
<template v-slot:activator="{ on, attrs }">
6+
<v-chip
7+
v-if="dirty && valid"
8+
v-bind="attrs"
9+
v-on="on"
10+
x-small
11+
label
12+
outlined
13+
color="error">
14+
DIRTY
15+
</v-chip>
16+
</template>
17+
<span>indicates local changes to the repo</span>
18+
</v-tooltip>
19+
20+
<v-tooltip left>
21+
<template v-slot:activator="{ on, attrs }">
22+
<v-chip
23+
v-if="!valid"
24+
v-bind="attrs"
25+
v-on="on"
26+
x-small
27+
label
28+
outlined
29+
color="error">
30+
INVALID
31+
</v-chip>
32+
</template>
33+
<span>indicates a detached head, not on master or an invalid origin</span>
34+
</v-tooltip>
35+
36+
<v-btn v-if="hasUpdate && (!dirty && valid)" :disabled="disabled" :loading="loading" x-small text color="warning" @click="$emit('on-update')">UPDATE</v-btn>
737
</div>
838
</template>
939

0 commit comments

Comments
 (0)