diff --git a/frontend/src/components/EspressoIcons/Docs.vue b/frontend/src/components/EspressoIcons/Docs.vue new file mode 100644 index 00000000..d9db654f --- /dev/null +++ b/frontend/src/components/EspressoIcons/Docs.vue @@ -0,0 +1,16 @@ + + + diff --git a/frontend/src/components/PrimaryDropdown.vue b/frontend/src/components/PrimaryDropdown.vue index bf525c58..97d7c6b9 100644 --- a/frontend/src/components/PrimaryDropdown.vue +++ b/frontend/src/components/PrimaryDropdown.vue @@ -56,6 +56,7 @@ import { Dropdown, FeatherIcon } from "frappe-ui" import SettingsDialog from "@/components/Settings/SettingsDialog.vue" import FrappeDriveLogo from "@/components/FrappeDriveLogo.vue" +import Docs from "@/components/EspressoIcons/Docs.vue" export default { name: "PrimaryDropdown", @@ -85,22 +86,45 @@ export default { settingsItems() { return [ { - icon: "grid", - label: "Switch to Desk", - condition: () => this.$store.state.user.isSystemUser, - onClick() { - window.location.href = "/app" - }, + group: "Manage", + hideLabel: true, + items: [ + { + icon: "corner-up-left", + label: "Switch to Desk", + condition: () => this.$store.state.user.systemUser, + onClick() { + window.location.href = "/app" + }, + }, + { + icon: Docs, + label: "Documentation", + onClick: () => + window.open("https://docs.frappe.io/drive", "_blank"), + }, + { + icon: "life-buoy", + label: "Support", + onClick: () => window.open("https://t.me/frappedrive", "_blank"), + }, + ], }, { - icon: "settings", - label: "Settings", - onClick: () => (this.showSettings = true), - }, - { - icon: "log-out", - label: "Log out", - onClick: () => this.logout(), + group: "Others", + hideLabel: true, + items: [ + { + icon: "settings", + label: "Settings", + onClick: () => (this.showSettings = true), + }, + { + icon: "log-out", + label: "Log out", + onClick: () => this.logout(), + }, + ], }, ] }, diff --git a/frontend/src/components/Settings/UserRoleSettings.vue b/frontend/src/components/Settings/UserRoleSettings.vue index 2542261f..bd6a49b6 100644 --- a/frontend/src/components/Settings/UserRoleSettings.vue +++ b/frontend/src/components/Settings/UserRoleSettings.vue @@ -10,7 +10,9 @@ Create -