File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 33
33
<div class =" vs-input-content vs-input-content--has-color" >
34
34
<input
35
35
placeholder =" "
36
- disabled
36
+ readonly
37
37
id =" vs-input--2445"
38
38
class =" vs-input vs-input--has-icon vs-input--has-icon--after"
39
39
style =" min-width : 100% ; opacity : 1 "
@@ -433,10 +433,18 @@ export default class PackageView extends Vue {
433
433
434
434
copyCommand(p : VeinShard | undefined ) {
435
435
if (! p ) return ;
436
- navigator .clipboard .writeText (` vein add ${p .name } --version ${p .version } ` );
437
- console .log (
438
- ` Text '${` vein add ${p .name } --version ${p .version } ` }' copied to clipboard `
439
- );
436
+
437
+ if (p .isWorkload ) {
438
+ navigator .clipboard .writeText (` rune workload install ${p .name } --version ${p .version } ` );
439
+ console .log (
440
+ ` Text '${` rune workload install ${p .name } --version ${p .version } ` }' copied to clipboard `
441
+ );
442
+ } else {
443
+ navigator .clipboard .writeText (` rune add ${p .name } --version ${p .version } ` );
444
+ console .log (
445
+ ` Text '${` rune add ${p .name } --version ${p .version } ` }' copied to clipboard `
446
+ );
447
+ }
440
448
441
449
this .$vs .notification ({
442
450
sticky: true ,
You can’t perform that action at this time.
0 commit comments