Skip to content

Commit f923316

Browse files
committed
add support for workloads
1 parent c3d7896 commit f923316

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/models/VeinShard.ts

+1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,5 @@ export type VeinShard = {
5252
hasServicedPackage: boolean;
5353

5454
hasMetapackage: boolean;
55+
hasWorkload: boolean;
5556
}

src/views/PackageView.vue

+12-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717
<i class="bx bxs-memory-card" style="color: #525252"></i>
1818
<template #tooltip> This is a metapackage! </template>
1919
</vs-tooltip>
20+
<vs-tooltip
21+
style="display: inline"
22+
v-if="currentPackage.hasWorkload"
23+
>
24+
<i class="bx bxs-box" style="color: #525252"></i>
25+
<template #tooltip> This is a workload! </template>
26+
</vs-tooltip>
2027
<i class="bx bxs-package" style="color: #525252" v-else></i>
2128
{{ packageName }}
2229
<verified-badge v-if="currentPackage.isVerified" />
@@ -37,8 +44,11 @@
3744
class="vs-input vs-input--has-icon vs-input--has-icon--after"
3845
style="min-width: 100%; opacity: 1"
3946
/>
40-
<label for="vs-input--2445" class="vs-input__label">
41-
vein add {{ currentPackage.name }} --version {{ packageVersion }}
47+
<label for="vs-input--2445" class="vs-input__label" v-if="currentPackage.hasWorkload">
48+
rune workload install {{ currentPackage.name }} --version {{ packageVersion }}
49+
</label>
50+
<label for="vs-input--2445" class="vs-input__label" v-else>
51+
rune add {{ currentPackage.name }} --version {{ packageVersion }}
4252
</label>
4353
<span v-if="currentPackage"
4454
class="

0 commit comments

Comments
 (0)