@@ -95,6 +95,27 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
9595 You are not running Cylc UI via Cylc Hub.
9696 </v-tooltip >
9797 </div >
98+ <div >
99+ <v-list-item
100+ id =" jupyter-lab-button"
101+ :disabled =" !user.extensions?.lab"
102+ :href =" user.extensions?.lab"
103+ target =" _blank"
104+ >
105+ <template v-slot :prepend >
106+ <v-icon size =" 1.6em" >{{ $options.icons.jupyterLogo }}</v-icon >
107+ </template >
108+ <v-list-item-title class =" text-h6 font-weight-light" >
109+ Jupyter Lab
110+ </v-list-item-title >
111+ <v-list-item-subtitle >
112+ Open Jupyter Lab in a new browser tab.
113+ </v-list-item-subtitle >
114+ </v-list-item >
115+ <v-tooltip :disabled =" user.extensions?.lab" >
116+ Jupyter Lab is not installed.
117+ </v-tooltip >
118+ </div >
98119 </v-list >
99120 </v-col >
100121 <v-col md =" 6" lg =" 6" >
@@ -141,6 +162,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
141162<script >
142163import { mapState , mapGetters } from ' vuex'
143164import { mdiBook , mdiBookMultiple , mdiBookOpenVariant , mdiCog , mdiHubspot , mdiTable } from ' @mdi/js'
165+ import { jupyterLogo } from ' @/utils/icons'
144166import subscriptionComponentMixin from ' @/mixins/subscriptionComponent'
145167import { createUrl } from ' @/utils/urls'
146168import { WorkflowState , WorkflowStateOrder } from ' @/model/WorkflowState.model'
@@ -250,6 +272,7 @@ export default {
250272 quickstart: mdiBook,
251273 workflow: mdiBookOpenVariant,
252274 documentation: mdiBookMultiple,
275+ jupyterLogo,
253276 },
254277}
255278 </script >
0 commit comments