Skip to content

Commit c8ee21d

Browse files
committed
add disableAction to MultiUserSelectInputGroup
1 parent 63b7c3a commit c8ee21d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

frontend/src/components/AdminSettingsEmergencyAccess.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
:selected-users="selectedUsers"
101101
:on-search="async () => []"
102102
:input-visible="enableEmergencyAccess"
103+
:disable-action="true"
103104
/>
104105
<p class="mt-2 text-sm text-gray-500">Who shall retrieve an emergency access key.</p>
105106
</div>

frontend/src/components/MultiUserSelectInputGroup.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<div class="relative w-full">
33
<div
44
:class="[
5-
'flex items-center flex-wrap min-h-[54px] rounded-md px-2 py-1 shadow-xs border bg-white',
6-
inputVisible ? 'focus-within:ring-1' : 'bg-gray-50 cursor-not-allowed',
5+
'flex items-center flex-wrap min-h-[54px] rounded-md px-2 py-1 shadow-xs border',
6+
inputVisible ? 'focus-within:ring-1 bg-white' : 'bg-gray-100 cursor-not-allowed',
77
props.hasError
88
? 'border-red-300 text-red-900 focus-within:ring-red-500 focus-within:border-red-500'
99
: 'border-gray-300 focus-within:ring-primary'
@@ -32,7 +32,7 @@
3232
<TrustDetails
3333
:trusted-user="user as UserDto"
3434
:trusts="trusts"
35-
:disable-action="!inputVisible"
35+
:disable-action="disableAction"
3636
@trust-changed="refreshTrusts"
3737
/>
3838
</span>
@@ -106,7 +106,6 @@ import { ref, computed, watch, nextTick, onMounted } from 'vue';
106106
import { Combobox, ComboboxInput } from '@headlessui/vue';
107107
import { useI18n } from 'vue-i18n';
108108
import TrustDetails from './TrustDetails.vue';
109-
import UserListGroupVisualization from './UserListGroupVisualization.vue';
110109
111110
export type Item = {
112111
id: string;
@@ -128,6 +127,7 @@ const props = defineProps<{
128127
selectedUsers: T[];
129128
onSearch: (query: string) => Promise<T[]>;
130129
inputVisible: boolean;
130+
disableAction?: boolean;
131131
hasError?: boolean;
132132
errorMessage?: string;
133133
placeholder?: string;

0 commit comments

Comments
 (0)