Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
nimya-aot committed Jun 13, 2024
1 parent e950bc9 commit 43b47cf
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ defineExpose({
</div>
</template>
</v-checkbox>
<v-checkbox v-model="form.wideFormLayout" hide-details="auto" data-test="canAllowWideFormLayoutCheckbox" class="my-0">
<v-checkbox v-model="form.wideFormLayout" hide-details="auto"

Check failure on line 277 in app/frontend/src/components/designer/settings/FormFunctionalitySettings.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Replace `·v-model="form.wideFormLayout"` with `⏎······v-model="form.wideFormLayout"⏎·····`

Check warning on line 277 in app/frontend/src/components/designer/settings/FormFunctionalitySettings.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Expected a linebreak before this attribute
data-test="canAllowWideFormLayoutCheckbox"
class="my-0">

Check failure on line 279 in app/frontend/src/components/designer/settings/FormFunctionalitySettings.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Insert `⏎····`
<template #label>
<div :class="{ 'mr-2': isRTL }">
<span
Expand Down
2 changes: 1 addition & 1 deletion app/frontend/src/components/forms/manage/ApiKey.vue
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ export default {
v-model="filesApiAccess"
:disabled="!apiKey"
:label="$t('trans.apiKey.filesAPIAccess')"
@update:model-value="updateKey"
data-test="canAllowFileAccess"
@update:model-value="updateKey"
></v-checkbox>
</v-col>
</v-row>
Expand Down
16 changes: 12 additions & 4 deletions app/frontend/src/components/forms/manage/ManageForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ export default {
<v-expansion-panel flat>
<!-- Form Settings -->
<v-expansion-panel-title>
<div class="header" :lang="lang" data-test="canExpandFormSettingsPanel">
<div class="header"

Check failure on line 148 in app/frontend/src/components/forms/manage/ManageForm.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Insert `⏎···········`

Check warning on line 148 in app/frontend/src/components/forms/manage/ManageForm.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Expected a linebreak before this attribute
:lang="lang"

Check failure on line 149 in app/frontend/src/components/forms/manage/ManageForm.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Delete `·`
data-test="canExpandFormSettingsPanel">

Check failure on line 150 in app/frontend/src/components/forms/manage/ManageForm.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Insert `⏎··········`
<strong>{{ $t('trans.manageForm.formSettings') }}</strong>
<span :lang="lang">
<small>
Expand Down Expand Up @@ -245,7 +247,9 @@ export default {
>
<v-expansion-panel flat>
<v-expansion-panel-title>
<div class="header" :lang="lang" data-test="canExpandApiKeySettingsPanel">
<div class="header"

Check failure on line 250 in app/frontend/src/components/forms/manage/ManageForm.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Insert `⏎···········`

Check warning on line 250 in app/frontend/src/components/forms/manage/ManageForm.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Expected a linebreak before this attribute
:lang="lang"
data-test="canExpandApiKeySettingsPanel">

Check failure on line 252 in app/frontend/src/components/forms/manage/ManageForm.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Insert `⏎··········`
<strong>{{ $t('trans.manageForm.apiKey') }}</strong>
<span v-if="apiKey" :lang="lang">
<small v-if="apiKey.updatedBy">
Expand Down Expand Up @@ -277,7 +281,9 @@ export default {
>
<v-expansion-panel flat>
<v-expansion-panel-title>
<div class="header" :lang="lang" data-test="canExpandCDOGSPanel">
<div class="header"

Check warning on line 284 in app/frontend/src/components/forms/manage/ManageForm.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Expected a linebreak before this attribute

Check failure on line 284 in app/frontend/src/components/forms/manage/ManageForm.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Replace `⏎············:lang="lang"·⏎···········` with `·:lang="lang"`
:lang="lang"
data-test="canExpandCDOGSPanel">
<strong>{{ $t('trans.manageForm.cdogsTemplate') }}</strong>
</div>
</v-expansion-panel-title>
Expand All @@ -291,7 +297,9 @@ export default {
<v-expansion-panels v-model="versionsPanel" class="nrmc-expand-collapse">
<v-expansion-panel flat>
<v-expansion-panel-title>
<div class="header" :lang="lang" data-test="canExpandFormDesignHistoryPanel">
<div class="header"

Check failure on line 300 in app/frontend/src/components/forms/manage/ManageForm.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Insert `⏎···········`

Check warning on line 300 in app/frontend/src/components/forms/manage/ManageForm.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Expected a linebreak before this attribute
:lang="lang"

Check failure on line 301 in app/frontend/src/components/forms/manage/ManageForm.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Delete `·`
data-test="canExpandFormDesignHistoryPanel">
<strong style="flex: 1">{{
$t('trans.manageForm.formDesignHistory')
}}</strong>
Expand Down
12 changes: 6 additions & 6 deletions app/frontend/src/components/forms/manage/TeamManagement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -569,65 +569,65 @@ export default {
v-if="!disableRole('form_designer', item, form.userType)"
key="form_designer"
v-model="item.form_designer"
data-test="FormDesignerRoleCheckbox"
v-ripple
:disabled="updating"
@update:modelValue="toggleRole(item)"
data-test="FormDesignerRoleCheckbox"

Check warning on line 575 in app/frontend/src/components/forms/manage/TeamManagement.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Attribute "data-test" should go before "@update:modelValue"
></v-checkbox-btn>
</template>
<template #item.owner="{ item }">
<v-checkbox-btn
v-if="!disableRole('owner', item, form.userType)"
key="owner"
v-model="item.owner"
data-test="OwnerRoleCheckbox"
v-ripple
:disabled="updating"
@update:modelValue="toggleRole(item)"
data-test="OwnerRoleCheckbox"

Check warning on line 586 in app/frontend/src/components/forms/manage/TeamManagement.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Attribute "data-test" should go before "@update:modelValue"
></v-checkbox-btn>
</template>
<template #item.submission_approver="{ item }">
<v-checkbox-btn
v-if="!disableRole('submission_approver', item, form.userType)"
key="submission_approver"
v-model="item.submission_approver"
data-test="ApproverRoleCheckbox"
v-ripple
:disabled="updating"
@update:modelValue="toggleRole(item)"
data-test="ApproverRoleCheckbox"

Check warning on line 597 in app/frontend/src/components/forms/manage/TeamManagement.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Attribute "data-test" should go before "@update:modelValue"
></v-checkbox-btn>
</template>
<template #item.submission_reviewer="{ item }">
<v-checkbox-btn
v-if="!disableRole('submission_reviewer', item, form.userType)"
key="submission_reviewer"
v-model="item.submission_reviewer"
data-test="ReviewerRoleCheckbox"
v-ripple
:disabled="updating"
@update:modelValue="toggleRole(item)"
data-test="ReviewerRoleCheckbox"

Check warning on line 608 in app/frontend/src/components/forms/manage/TeamManagement.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Attribute "data-test" should go before "@update:modelValue"
></v-checkbox-btn>
</template>
<template #item.form_submitter="{ item }">
<v-checkbox-btn
v-if="!disableRole('form_submitter', item, form.userType)"
key="form_submitter"
v-model="item.form_submitter"
data-test="SubmitterRoleCheckbox"
v-ripple
:disabled="updating"
@update:modelValue="toggleRole(item)"
data-test="SubmitterRoleCheckbox"

Check warning on line 619 in app/frontend/src/components/forms/manage/TeamManagement.vue

View workflow job for this annotation

GitHub Actions / Unit Tests (Frontend) (18)

Attribute "data-test" should go before "@update:modelValue"
></v-checkbox-btn>
</template>
<template #item.team_manager="{ item }">
<v-checkbox-btn
v-if="!disableRole('team_manager', item, form.userType)"
key="team_manager"
v-model="item.team_manager"
data-test="TeamManagerRoleCheckbox"
v-ripple
:disabled="updating"
@update:modelValue="toggleRole(item)"
data-test="TeamManagerRoleCheckbox"
></v-checkbox-btn>
</template>
<template #item.actions="{ item }">
Expand Down
11 changes: 7 additions & 4 deletions app/frontend/src/components/forms/submission/StatusPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,10 @@ export default {

<template>
<div :class="{ 'dir-rtl': isRTL }">
<div class="flex-container" @click="showStatusContent = !showStatusContent" data-test="showStatusPanel">
<h2 class="status-heading" :class="{ 'dir-rtl': isRTL }" :lang="lang">
<div class="flex-container"
data-test="showStatusPanel"
@click="showStatusContent = !showStatusContent">
<h2 class="status-heading" :class="{ 'dir-rtl': isRTL }" :lang="lang">
{{ $t('trans.formSubmission.status') }}
<v-icon>{{
showStatusContent
Expand All @@ -322,8 +324,9 @@ export default {
<strong>{{ $t('trans.statusPanel.assignedTo') }}</strong>
{{ currentStatus.user ? currentStatus.user.fullName : 'N/A' }}
<span v-if="currentStatus.user"
data-test="showAssigneeEmail">({{ currentStatus.user.email }})</span
>
data-test="showAssigneeEmail">
({{ currentStatus.user.email }})
</span>
</span>
</p>
</div>
Expand Down

0 comments on commit 43b47cf

Please sign in to comment.