11<template >
22 <Teleport to =" #activity-bar" >
3- <button
4- v-if =" status.onClick"
5- type =" button"
6- :class =" ['activity-bar__action', 'status-indicator', { 'status-indicator--error-action': status.isError }]"
7- :title =" status.tooltip"
8- @click =" status.onClick"
9- >
10- <i :class =" status.iconClass" ></i >
11- <span class =" status-indicator__text" >{{ status.text }}</span >
12- </button >
13- <div
14- v-else
15- :class =" ['status-indicator', { 'status-indicator--error': status.isError }]"
16- >
17- <i :class =" status.iconClass" ></i >
18- <span class =" status-indicator__text" >{{ status.text }}</span >
3+ <div class =" activity-bar--left" >
4+ <button class =" activity-bar__action" @click =" requestNewGame" >
5+ <span class =" icon is-small" ><i class =" fa fa-plus fa-xs" ></i ></span >
6+ <span >Request a new game</span >
7+ </button >
8+ </div >
9+ <div class =" activity-bar--right" >
10+ <button
11+ v-if =" status.onClick"
12+ type =" button"
13+ :class =" ['activity-bar__action', 'status-indicator', { 'status-indicator--error-action': status.isError }]"
14+ :title =" status.tooltip"
15+ @click =" status.onClick"
16+ >
17+ <i :class =" status.iconClass" ></i >
18+ <span class =" status-indicator__text" >{{ status.text }}</span >
19+ </button >
20+ <div
21+ v-else
22+ :class =" ['status-indicator', { 'status-indicator--error': status.isError }]"
23+ >
24+ <i :class =" status.iconClass" ></i >
25+ <span class =" status-indicator__text" >{{ status.text }}</span >
26+ </div >
1927 </div >
2028 </Teleport >
2129</template >
2432import { computed } from ' vue' ;
2533import { getStore } from ' ../../providers/generic/store/StoreProvider' ;
2634import { State } from ' ../../store' ;
35+ import LinkProvider from ' ../../providers/components/LinkProvider' ;
2736
2837const store = getStore <State >();
2938
@@ -61,6 +70,10 @@ const status = computed(() => {
6170 tooltip: undefined ,
6271 };
6372});
73+
74+ function requestNewGame() {
75+ LinkProvider .instance .openLink (" https://wiki.thunderstore.io/ecosystem/adding-a-new-game" );
76+ }
6477 </script >
6578
6679<style lang="scss" scoped>
@@ -85,7 +98,6 @@ const status = computed(() => {
8598}
8699
87100.status-indicator--error-action {
88- margin-left : auto ;
89101 color : var (--ecosystem-update-error-text , #a3162f );
90102 background : var (--ecosystem-update-error-background , #fbe4e7 );
91103 border : 1px solid var (--ecosystem-update-error-border , #efc2ca );
@@ -96,4 +108,8 @@ const status = computed(() => {
96108 border-color : var (--ecosystem-update-error-border , #efc2ca );
97109 color : var (--ecosystem-update-error-text , #a3162f );
98110}
111+
112+ .spacer {
113+ flex : 1 ;
114+ }
99115 </style >
0 commit comments