Skip to content

Commit 1a16162

Browse files
committed
added helpers list to mobile mode
1 parent 9674b41 commit 1a16162

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/components/Header.vue

+23
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@
1111
v-if="this.$route.path !== '/settings'"
1212
>
1313
<RunButton @run="run()" />
14+
<div class="hide-on-wide mx-2">
15+
<p class="mb-4 my-4">
16+
<b-tag
17+
class="mr-1"
18+
v-for="helper of config.helpers"
19+
:key="helper"
20+
>
21+
{{ helper }}
22+
</b-tag>
23+
</p>
24+
</div>
1425
</b-navbar-item>
1526
</template>
1627

@@ -24,6 +35,7 @@
2435
</template>
2536

2637
<script>
38+
import axios from 'axios';
2739
import SettingsMenu from './SettingsMenu';
2840
import RunButton from './RunButton';
2941
import Logo from './Logo';
@@ -36,6 +48,17 @@ export default {
3648
default: false
3749
}
3850
},
51+
data() {
52+
return {
53+
config: {
54+
helpers: []
55+
},
56+
};
57+
},
58+
async created() {
59+
const config = await axios.get('/api/config');
60+
this.config = config.data;
61+
},
3962
components: { SettingsMenu, RunButton, Logo },
4063
methods: {
4164
run() {

0 commit comments

Comments
 (0)