Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Add inputType to OcModal component #2077

Merged
merged 1 commit into from
Apr 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/unreleased/enhancement-modal-input-type
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Enhancement: OcModal input type

We've added an option to set the input type for input fields in the OcModal component.

https://github.com/owncloud/owncloud-design-system/pull/2077
2 changes: 1 addition & 1 deletion changelog/unreleased/enhancement-redesign-ghost-element
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Enhancement: Redesign OcGhostElement
We've redesigned OcGhostElement to use OcResourceIcon and
to display a better preview of the items that have been dragged

https://github.com/owncloud/owncloud-design-system/pull/2049/
https://github.com/owncloud/owncloud-design-system/pull/2049
8 changes: 8 additions & 0 deletions src/components/organisms/OcModal/OcModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
class="oc-modal-body-input"
:error-message="inputError"
:label="inputLabel"
:type="inputType"
:description-message="inputDescription"
:disabled="inputDisabled"
:fix-message-line="true"
Expand Down Expand Up @@ -191,6 +192,13 @@ export default {
required: false,
default: false,
},
/**
* Type of the input field
*/
inputType: {
type: String,
default: "text",
},
/**
* Value of the input
*/
Expand Down