5353 <template #rows >
5454 <ff-data-table-row v-for =" (item) in filteredRows" :key =" item.index" :data-row =" 'row-' + item.name" >
5555 <td class =" ff-data-table--cell !pl-1 !pr-0 !py-1 border min-w-max max-w-sm align-top" >
56- <FormRow
57- v-model =" item.name"
58- v-ff-tooltip:left =" 'Cannot be renamed'"
59- class =" font-mono"
60- :containerClass =" 'w-full' + (!readOnly && (editTemplate || item.policy === undefined)) ? ' env-cell-uneditable':''"
61- :inputClass =" item.deprecated ? 'w-full text-yellow-700 italic' : 'w-full'"
62- :error =" errors[item.index] ? errors[item.index].error : null"
63- :disabled =" isDisabledName(item)"
64- value-empty-text =" "
56+ <template v-if =" (! readOnly && (editTemplate || item .policy === undefined )) " >
57+ <FormRow
58+ v-model =" item.name"
59+ v-ff-tooltip:left =" 'Cannot be renamed'"
60+ class =" font-mono"
61+ :containerClass =" 'w-full env-cell-uneditable'"
62+ :inputClass =" item.deprecated ? 'w-full text-yellow-700 italic' : 'w-full'"
63+ :error =" errors[item.index] ? errors[item.index].error : null"
64+ :disabled =" isDisabledName(item)"
65+ value-empty-text =" "
66+ data-el =" var-name"
67+ type =" text"
68+ />
69+ </template >
70+ <TextCopier
71+ v-else
72+ :text =" item.name"
73+ class =" font-mono env-cell-uneditable w-full pl-2"
74+ :class =" item.deprecated ? 'text-yellow-700 italic' : ''"
6575 data-el =" var-name"
66- :type =" (!readOnly && (editTemplate || item.policy === undefined)) ? 'text' : 'uneditable'"
6776 />
6877 </td >
6978 <td class =" ff-data-table--cell !p-1 border w-3/5 max-w-xl" :class =" {'align-middle':item.encrypted, 'align-top': !item.hidden}" >
@@ -162,6 +171,7 @@ import { DocumentDownloadIcon, ExclamationIcon, EyeIcon, EyeOffIcon, Information
162171
163172import FormHeading from ' ../../../../components/FormHeading.vue'
164173import FormRow from ' ../../../../components/FormRow.vue'
174+ import TextCopier from ' ../../../../components/TextCopier.vue'
165175import Alerts from ' ../../../../services/alerts.js'
166176import ChangeIndicator from ' ../components/ChangeIndicator.vue'
167177import LockSetting from ' ../components/LockSetting.vue'
@@ -181,7 +191,8 @@ export default {
181191 ExclamationIcon,
182192 InformationCircleIcon,
183193 EyeIcon,
184- EyeOffIcon
194+ EyeOffIcon,
195+ TextCopier
185196 },
186197 props: {
187198 editTemplate: {
0 commit comments