-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18807 from jmchilton/landing
- Loading branch information
Showing
80 changed files
with
3,988 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { type components } from "@/api/schema"; | ||
|
||
export type ClaimLandingPayload = components["schemas"]["ClaimLandingPayload"]; | ||
export type WorkflowLandingRequest = components["schemas"]["WorkflowLandingRequest"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
client/src/components/Form/Elements/FormData/FormDataUri.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<template> | ||
<b-row align-v="center"> | ||
<b-col> | ||
<b-form-input :id="id" v-model="displayValue" :class="['ui-input', cls]" :readonly="true" /> | ||
</b-col> | ||
</b-row> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
value: { | ||
type: Object, | ||
}, | ||
id: { | ||
type: String, | ||
default: "", | ||
}, | ||
multiple: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
cls: { | ||
// Refers to an optional custom css class name | ||
type: String, | ||
default: null, | ||
}, | ||
}, | ||
computed: { | ||
displayValue: { | ||
get() { | ||
return this.value.url; | ||
}, | ||
set(newVal, oldValue) { | ||
if (newVal !== this.value.url) { | ||
this.$emit("input", this.value); | ||
} | ||
}, | ||
}, | ||
currentValue: { | ||
get() { | ||
const v = this.value ?? ""; | ||
if (Array.isArray(v)) { | ||
if (v.length === 0) { | ||
return ""; | ||
} | ||
return this.multiple | ||
? this.value.reduce((str_value, v) => str_value + String(v) + "\n", "") | ||
: String(this.value[0]); | ||
} | ||
return String(v); | ||
}, | ||
set(newVal, oldVal) { | ||
if (newVal !== oldVal) { | ||
this.$emit("input", newVal); | ||
} | ||
}, | ||
}, | ||
}, | ||
}; | ||
</script> | ||
<style scoped> | ||
.ui-input-linked { | ||
border-left-width: 0.5rem; | ||
} | ||
</style> |
Oops, something went wrong.