diff --git a/src/components/session/subuser/SubuserGrantSelector.vue b/src/components/session/subuser/SubuserGrantSelector.vue index e37faed8..2d51a300 100644 --- a/src/components/session/subuser/SubuserGrantSelector.vue +++ b/src/components/session/subuser/SubuserGrantSelector.vue @@ -1,6 +1,7 @@ Vælg kunde - - + + + + + + + + + {{ selectedGrantName }} + + + + + + + + + {{ grant.name || 'Kunde #' + grant.billing_customer_number }} + + + + + + + + - - + + { margin-bottom: 0; } -.grant-selector.is-compact .field.has-addons { - margin-bottom: 0; +.grant-selector.is-compact .dropdown-trigger .button { + border: none; + box-shadow: none; } -.grant-selector.is-compact .select select { - border-radius: 4px; - font-size: 0.875rem; - padding-right: 2rem; +.grant-selector.is-compact .dropdown-menu { + min-width: 200px; +} + +.grant-selector.is-compact .dropdown-item { + cursor: pointer; +} + +.grant-selector.is-compact .dropdown-item.is-active { + background-color: #3273dc; + color: white; } .label { @@ -93,6 +137,14 @@ const selectedGrant = computed(() => { border-color: #dbdbdb; } +.transform-color-black { + filter: invert(100%) grayscale(100%) brightness(0) contrast(100%); +} + +.transform-color-red { + filter: invert(27%) sepia(96%) saturate(7493%) hue-rotate(357deg) brightness(103%) contrast(101%); +} + .help { font-size: 0.85rem; color: #666; diff --git a/src/views/dashboards/userDashboard/profile/UserProfile.vue b/src/views/dashboards/userDashboard/profile/UserProfile.vue index 84a9b4d6..70b44f3b 100644 --- a/src/views/dashboards/userDashboard/profile/UserProfile.vue +++ b/src/views/dashboards/userDashboard/profile/UserProfile.vue @@ -10,6 +10,7 @@ import Swal from "sweetalert2"; import MicrosoftAuthenticationBox from "@/views/dashboards/userDashboard/profile/displays/MicrosoftAuthentication/MicrosoftAuthenticationBox.vue"; import ShowErrorField from "@/components/global/ShowErrorField.vue"; +import SubuserGrantSelector from "@/components/session/subuser/SubuserGrantSelector.vue"; import { parseError, removeError, addError } from "@/components/request/HandleGlobalError.vue"; import ConfigurationSwitch from "@/components/displays/superuser/configuration/ConfigurationSwitch.vue"; @@ -504,6 +505,20 @@ const onClickSaveWashCertificateEmail = async () => { + + + + + Som underbruger kan du skifte mellem forskellige kunder, som du har adgang til. + +
+ + +
- + + { margin-bottom: 0; } -.grant-selector.is-compact .field.has-addons { - margin-bottom: 0; +.grant-selector.is-compact .dropdown-trigger .button { + border: none; + box-shadow: none; } -.grant-selector.is-compact .select select { - border-radius: 4px; - font-size: 0.875rem; - padding-right: 2rem; +.grant-selector.is-compact .dropdown-menu { + min-width: 200px; +} + +.grant-selector.is-compact .dropdown-item { + cursor: pointer; +} + +.grant-selector.is-compact .dropdown-item.is-active { + background-color: #3273dc; + color: white; } .label { @@ -93,6 +137,14 @@ const selectedGrant = computed(() => { border-color: #dbdbdb; } +.transform-color-black { + filter: invert(100%) grayscale(100%) brightness(0) contrast(100%); +} + +.transform-color-red { + filter: invert(27%) sepia(96%) saturate(7493%) hue-rotate(357deg) brightness(103%) contrast(101%); +} + .help { font-size: 0.85rem; color: #666; diff --git a/src/views/dashboards/userDashboard/profile/UserProfile.vue b/src/views/dashboards/userDashboard/profile/UserProfile.vue index 84a9b4d6..70b44f3b 100644 --- a/src/views/dashboards/userDashboard/profile/UserProfile.vue +++ b/src/views/dashboards/userDashboard/profile/UserProfile.vue @@ -10,6 +10,7 @@ import Swal from "sweetalert2"; import MicrosoftAuthenticationBox from "@/views/dashboards/userDashboard/profile/displays/MicrosoftAuthentication/MicrosoftAuthenticationBox.vue"; import ShowErrorField from "@/components/global/ShowErrorField.vue"; +import SubuserGrantSelector from "@/components/session/subuser/SubuserGrantSelector.vue"; import { parseError, removeError, addError } from "@/components/request/HandleGlobalError.vue"; import ConfigurationSwitch from "@/components/displays/superuser/configuration/ConfigurationSwitch.vue"; @@ -504,6 +505,20 @@ const onClickSaveWashCertificateEmail = async () => {
+ { margin-bottom: 0; } -.grant-selector.is-compact .field.has-addons { - margin-bottom: 0; +.grant-selector.is-compact .dropdown-trigger .button { + border: none; + box-shadow: none; } -.grant-selector.is-compact .select select { - border-radius: 4px; - font-size: 0.875rem; - padding-right: 2rem; +.grant-selector.is-compact .dropdown-menu { + min-width: 200px; +} + +.grant-selector.is-compact .dropdown-item { + cursor: pointer; +} + +.grant-selector.is-compact .dropdown-item.is-active { + background-color: #3273dc; + color: white; } .label { @@ -93,6 +137,14 @@ const selectedGrant = computed(() => { border-color: #dbdbdb; } +.transform-color-black { + filter: invert(100%) grayscale(100%) brightness(0) contrast(100%); +} + +.transform-color-red { + filter: invert(27%) sepia(96%) saturate(7493%) hue-rotate(357deg) brightness(103%) contrast(101%); +} + .help { font-size: 0.85rem; color: #666; diff --git a/src/views/dashboards/userDashboard/profile/UserProfile.vue b/src/views/dashboards/userDashboard/profile/UserProfile.vue index 84a9b4d6..70b44f3b 100644 --- a/src/views/dashboards/userDashboard/profile/UserProfile.vue +++ b/src/views/dashboards/userDashboard/profile/UserProfile.vue @@ -10,6 +10,7 @@ import Swal from "sweetalert2"; import MicrosoftAuthenticationBox from "@/views/dashboards/userDashboard/profile/displays/MicrosoftAuthentication/MicrosoftAuthenticationBox.vue"; import ShowErrorField from "@/components/global/ShowErrorField.vue"; +import SubuserGrantSelector from "@/components/session/subuser/SubuserGrantSelector.vue"; import { parseError, removeError, addError } from "@/components/request/HandleGlobalError.vue"; import ConfigurationSwitch from "@/components/displays/superuser/configuration/ConfigurationSwitch.vue"; @@ -504,6 +505,20 @@ const onClickSaveWashCertificateEmail = async () => {
+ Som underbruger kan du skifte mellem forskellige kunder, som du har adgang til. +