Skip to content

Commit

Permalink
Merge pull request #267 from Abdullah-Abuzaid/@bozaid/make-opening-oc…
Browse files Browse the repository at this point in the history
…toprint-clear

@bozaid/make opening octoprint clear
  • Loading branch information
davidzwa authored Jun 23, 2023
2 parents f394d19 + 884d052 commit 4882a16
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fdm-monster/client",
"version": "1.2.0",
"version": "1.2.1",
"private": false,
"author": "David Zwart",
"license": "AGPL-3.0-or-later",
Expand Down
Binary file added src/assets/octoprint_logo_rgb_100px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 34 additions & 3 deletions src/components/Generic/FileExplorerSideNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,21 @@
>
<v-list-item>
<v-list-item-avatar>
<v-btn color="primary" fab @click="openPrinterURL()" @click.middle="openPrinterURL()">
{{ avatarInitials() }}
</v-btn>
<v-tooltip left>
<template v-slot:activator="{ on, attrs }">
<v-btn
color="primary"
fab
v-bind="attrs"
@click="openPrinterURL()"
v-on="on"
@click.middle="openPrinterURL()"
>
{{ avatarInitials() }}
</v-btn>
</template>
<span>Visit the OctoPrint associated to this printer</span>
</v-tooltip>
</v-list-item-avatar>
<v-list-item-content v-if="storedSideNavPrinter">
<v-list-item-title>
Expand Down Expand Up @@ -74,6 +86,25 @@
<v-list v-drop-upload="{ printers: [storedSideNavPrinter] }" dense subheader>
<v-subheader inset>Manage FDM Monster instance</v-subheader>

<v-tooltip left>
<template v-slot:activator="{ on, attrs }">
<v-list-item
class="extra-dense-list-item"
link
@click.prevent.stop="openPrinterURL()"
v-bind="attrs"
v-on="on"
>
<v-list-item-avatar>
<v-icon>$vuetify.icons.octoprint</v-icon>
</v-list-item-avatar>
<v-list-item-content>
<span>Open OctoPrint</span>
</v-list-item-content>
</v-list-item>
</template>
<span>Visit the OctoPrint associated to this printer</span>
</v-tooltip>
<v-list-item class="extra-dense-list-item" link @click.prevent.stop="toggleEnabled()">
<v-list-item-avatar>
<v-tooltip bottom>
Expand Down
3 changes: 3 additions & 0 deletions src/plugins/vuetify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@ export default new Vuetify({
},
icons: {
iconfont: "md",
values: {
octoprint: "directions",
},
},
});

0 comments on commit 4882a16

Please sign in to comment.