Skip to content

Commit 7e4053a

Browse files
Merge pull request #57 from Geode-solutions/feat_is_saveable
2 parents 7d402fe + 9f00e0c commit 7e4053a

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

components/ExtensionSelector.vue

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,32 @@
1616
<v-card-text>
1717
<v-row>
1818
<v-col
19-
v-for="output_extension in item.output_extensions"
20-
:key="output_extension"
19+
v-for="output in item.outputs"
20+
:key="output.extension"
2121
cols="auto"
2222
class="pa-0"
2323
>
24-
<v-card
25-
class="card ma-2"
26-
color="primary"
27-
hover
28-
@click="set_variables(item.geode_object, output_extension)"
24+
<v-tooltip
25+
:disabled="output.is_saveable"
26+
text="Data not saveable with this file extension"
27+
location="bottom"
2928
>
30-
<v-card-title align="center">
31-
{{ output_extension }}
32-
</v-card-title>
33-
</v-card>
29+
<template v-slot:activator="{ props }">
30+
<span v-bind="props">
31+
<v-card
32+
class="card ma-2"
33+
:color="output.is_saveable ? 'primary' : 'grey'"
34+
hover
35+
@click="set_variables(item.geode_object, output.extension)"
36+
:disabled="!output.is_saveable"
37+
>
38+
<v-card-title align="center">
39+
{{ output.extension }}
40+
</v-card-title>
41+
</v-card>
42+
</span>
43+
</template>
44+
</v-tooltip>
3445
</v-col>
3546
</v-row>
3647
</v-card-text>

0 commit comments

Comments
 (0)