Skip to content

Commit

Permalink
Merge pull request #64 from icefoganalytics/issue-52/make-all-readonl…
Browse files Browse the repository at this point in the history
…y-fields-in-the-app-use-a-mdi-lock-prepend-icon

Make all Readonly Fields in the App Use a mdi-lock prepend-icon
  • Loading branch information
klondikemarlen authored Mar 12, 2024
2 parents 507290a + d1ecd6a commit 86872f7
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/src/components/access-grants/AccessGrantDeleteDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<v-col>
<AccessGrantGrantLevelSelect
v-model="accessGrant.grantLevel"
append-inner-icon="mdi-lock"
readonly
/>
</v-col>
Expand All @@ -23,6 +24,7 @@
<v-col>
<AccessGrantAccessTypeSelect
v-model="accessGrant.accessType"
append-inner-icon="mdi-lock"
readonly
/>
</v-col>
Expand All @@ -33,6 +35,7 @@
:model-value="accessGrant.supportId"
label="Request Email"
attribute="email"
append-inner-icon="mdi-lock"
readonly
/>
</v-col>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
:model-value="accessRequest.requestorId"
label="Name"
attribute="displayName"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand All @@ -27,6 +28,7 @@
<v-text-field
:model-value="accessRequest.requestorDepartmentName"
label="Department"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand All @@ -37,6 +39,7 @@
<v-text-field
:model-value="accessRequest.projectName"
label="Request on Behalf Of (Program/App)"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand All @@ -47,6 +50,7 @@
<v-textarea
:model-value="accessRequest.projectDescription"
label="Project Description"
append-inner-icon="mdi-lock"
rows="5"
variant="outlined"
readonly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
:model-value="accessRequest.requestorId"
label="Name"
attribute="displayName"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand All @@ -27,6 +28,7 @@
<v-text-field
:model-value="accessRequest.requestorDepartmentName"
label="Department"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand All @@ -37,6 +39,7 @@
<v-text-field
:model-value="accessRequest.projectName"
label="Request on Behalf Of (Program/App)"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand All @@ -47,6 +50,7 @@
<v-textarea
:model-value="accessRequest.projectDescription"
label="Project Description"
append-inner-icon="mdi-lock"
rows="5"
variant="outlined"
readonly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
:model-value="accessRequest.requestorId"
label="Name"
attribute="displayName"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand All @@ -27,6 +28,7 @@
<v-text-field
:model-value="accessRequest.requestorDepartmentName"
label="Department"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand All @@ -37,6 +39,7 @@
<v-text-field
:model-value="accessRequest.projectName"
label="Request on Behalf Of (Program/App)"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand All @@ -47,6 +50,7 @@
<v-textarea
:model-value="accessRequest.projectDescription"
label="Project Description"
append-inner-icon="mdi-lock"
rows="5"
variant="outlined"
readonly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<v-text-field
v-model="datasetField.name"
label="Field Name"
append-inner-icon="mdi-lock"
readonly
/>
</v-col>
Expand All @@ -25,6 +26,7 @@
<v-text-field
v-model="datasetField.displayName"
label="Display Name"
append-inner-icon="mdi-lock"
readonly
/>
</v-col>
Expand All @@ -34,6 +36,7 @@
<v-textarea
v-model="datasetField.description"
label="Field Description"
append-inner-icon="mdi-lock"
rows="6"
readonly
/>
Expand All @@ -45,6 +48,7 @@
v-model="datasetField.dataType"
:items="datasetFieldTypes"
label="Data Type"
append-inner-icon="mdi-lock"
readonly
/>
</v-col>
Expand All @@ -55,6 +59,7 @@
v-model="datasetField.note"
label="Notes"
rows="10"
append-inner-icon="mdi-lock"
readonly
/>
</v-col>
Expand Down
4 changes: 4 additions & 0 deletions web/src/components/datasets/DataDescriptionCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
:model-value="dataset.name"
label="Name"
variant="outlined"
append-inner-icon="mdi-lock"
readonly
/>
</v-col>
Expand All @@ -97,6 +98,7 @@
<v-textarea
:model-value="dataset.description"
label="Description"
append-inner-icon="mdi-lock"
variant="outlined"
rows="6"
readonly
Expand All @@ -121,13 +123,15 @@
<v-textarea
:model-value="dataset.termsOfUse"
label="Terms of Use"
append-inner-icon="mdi-lock"
variant="outlined"
rows="4"
readonly
/>
<v-textarea
:model-value="dataset.credits"
label="Credits"
append-inner-icon="mdi-lock"
variant="outlined"
rows="4"
readonly
Expand Down
9 changes: 9 additions & 0 deletions web/src/components/datasets/OwnerCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<UserAttributeTextField
:model-value="datasetStewardship.ownerId"
label="Owner Name"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand All @@ -32,6 +33,7 @@
:model-value="datasetStewardship.ownerId"
label="Owner Position"
attribute="position"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand All @@ -46,6 +48,7 @@
:model-value="datasetStewardship.supportId"
label="Support Name"
attribute="displayName"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand All @@ -58,6 +61,7 @@
:model-value="datasetStewardship.supportId"
label="Support Email"
attribute="email"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand All @@ -72,6 +76,7 @@
:model-value="datasetStewardship.supportId"
label="Support Position"
attribute="position"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand All @@ -90,6 +95,7 @@
item-value="id"
item-title="name"
label="Department"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand All @@ -106,6 +112,7 @@
item-value="id"
item-title="name"
label="Division"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand All @@ -124,6 +131,7 @@
item-value="id"
item-title="name"
label="Branch"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand All @@ -140,6 +148,7 @@
item-value="id"
item-title="name"
label="Unit"
append-inner-icon="mdi-lock"
variant="outlined"
readonly
/>
Expand Down
1 change: 1 addition & 0 deletions web/src/components/datasets/SubjectCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<TagsCombobox
:model-value="selectedTags"
label="Keywords"
append-inner-icon="mdi-lock"
variant="outlined"
:closable-chips="false"
readonly
Expand Down
4 changes: 4 additions & 0 deletions web/src/components/users/UserAttributeTextField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ const { modelValue: userId } = toRefs(props)
const { user, isLoading } = useUser(userId)
const fieldValue = computed(() => {
if (isNil(props.modelValue)) {
return ""
}
if (isLoading.value) {
return "loading..."
}
Expand Down

0 comments on commit 86872f7

Please sign in to comment.