File tree Expand file tree Collapse file tree
app/frontend/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -223,7 +223,14 @@ watch(
223223 </span >
224224
225225 <!-- Manage submission users -->
226- <span v-if =" submissionId && draftEnabled && !publicForm" class =" ml-2" >
226+ <!-- <span v-if="submissionId && draftEnabled && !publicForm" class="ml-2">
227+ <ManageSubmissionUsers
228+ :is-draft="isDraft"
229+ :submission-id="submissionId"
230+ :form-id="formId"
231+ />
232+ </span> -->
233+ <span v-if =" draftEnabled && !publicForm" class =" ml-2" >
227234 <ManageSubmissionUsers
228235 :is-draft =" isDraft "
229236 :submission-id =" submissionId "
Original file line number Diff line number Diff line change @@ -60,7 +60,15 @@ watch(userSearchInput, async (input) => {
6060});
6161
6262initializeSelectedIdp ();
63- getSubmissionUsers ();
63+
64+ watch (
65+ () => properties .isDraft ,
66+ (newValue ) => {
67+ if (newValue) {
68+ getSubmissionUsers ();
69+ }
70+ }
71+ );
6472
6573function onChangeSelectedIdp (newIdp , oldIdp ) {
6674 if (newIdp !== oldIdp) {
@@ -244,22 +252,28 @@ defineExpose({
244252
245253< template>
246254 < span>
247- < v- tooltip location= " bottom" >
255+ < v- tooltip
256+ location= " bottom"
257+ : lang= " locale"
258+ : text= "
259+ isDraft
260+ ? $t('trans.manageSubmissionUsers.manageTeamMembers')
261+ : $t('trans.manageSubmissionUsers.draftFormInvite')
262+ "
263+ >
248264 < template #activator= " { props }" >
249- < v- btn
250- color= " primary"
251- icon
252- v- bind= " props"
253- size= " x-small"
254- : title= " $t('trans.manageSubmissionUsers.manageTeamMembers')"
255- @click= " dialog = true"
256- >
257- < v- icon icon= " mdi:mdi-account-multiple" >< / v- icon>
258- < / v- btn>
265+ < div v- bind= " props" class = " d-inline-block" >
266+ < v- btn
267+ color= " primary"
268+ icon
269+ size= " x-small"
270+ : disabled= " !isDraft"
271+ @click= " dialog = true"
272+ >
273+ < v- icon icon= " mdi:mdi-account-multiple" >< / v- icon>
274+ < / v- btn>
275+ < / div>
259276 < / template>
260- < span : lang= " locale"
261- > {{ $t (' trans.manageSubmissionUsers.manageTeamMembers' ) }}
262- < / span>
263277 < / v- tooltip>
264278 < v- dialog v- model= " dialog" width= " 600" >
265279 < v- card : class = " { 'dir-rtl': isRTL }" >
You can’t perform that action at this time.
0 commit comments