File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1414 :key =" field.fieldname"
1515 class =" form-control"
1616 :placeholder =" `Add ${field.label}`"
17- :value =" transValue"
17+ :model- value =" transValue"
1818 autocomplete =" off"
1919 v-on ="
2020 textFields.includes(field.fieldtype)
3838</template >
3939
4040<script setup lang="ts">
41- import { computed , h } from " vue" ;
4241import { Autocomplete , Link } from " @/components" ;
43- import { createResource , FormControl , Tooltip } from " frappe-ui" ;
4442import { Field , FieldValue } from " @/types" ;
43+ import { createResource , FormControl , Tooltip } from " frappe-ui" ;
44+ import { computed , h } from " vue" ;
4545
4646interface P {
4747 field: Field ;
Original file line number Diff line number Diff line change 33 <div
44 class =" flex h-10.5 items-center border-b px-5 py-2.5 text-lg font-medium text-ink-gray-9 justify-between"
55 >
6- <span class =" cursor-copy text-lg font-semibold" @click =" copyToClipboard()"
6+ <span
7+ class =" cursor-copy text-lg font-semibold"
8+ @click =" copyToClipboard(`'${ticket.name}' copied to clipboard`)"
79 >#{{ ticket.name }}
810 </span >
911 <Dropdown
Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ export function formatTime(seconds) {
8585
8686export const isCustomerPortal = ref ( false ) ;
8787
88- export async function copyToClipboard ( ) {
89- let text = "Copied to clipboard" ;
88+ export async function copyToClipboard ( msg : string = "" ) {
89+ let text = msg || "Copied to clipboard" ;
9090 if ( navigator . clipboard && window . isSecureContext ) {
9191 await navigator . clipboard . writeText ( text ) ;
9292 } else {
You can’t perform that action at this time.
0 commit comments