Skip to content
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
2 changes: 2 additions & 0 deletions ui/public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3323,6 +3323,7 @@
"message.success.update.iprange": "Successfully updated IP range",
"message.success.update.kubeversion": "Successfully updated Kubernetes supported version",
"message.success.update.network": "Successfully updated Network",
"message.success.update.template": "Successfully updated Template",
"message.success.update.user": "Successfully updated user",
"message.success.upgrade.kubernetes": "Successfully upgraded Kubernetes cluster",
"message.success.upload": "Upload Successfully",
Expand All @@ -3340,6 +3341,7 @@
"message.template.desc": "OS image that can be used to boot VMs",
"message.template.import.vm.temporary": "If a temporary template is used, reset VM operation will not work after import.",
"message.template.iso": "Please select a template or ISO to continue",
"message.template.type.change.warning": "WARNING: Changing the template type to SYSTEM will disable further changes to the template.",
"message.tier.required": "Tier is required",
"message.tooltip.dns.1": "Name of a DNS server for use by VMs in the zone. The public IP addresses for the zone must have a route to this server.",
"message.tooltip.dns.2": "A second DNS server name for use by VMs in the zone. The public IP addresses for the zone must have a route to this server.",
Expand Down
14 changes: 2 additions & 12 deletions ui/src/config/section/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,8 @@ export default {
record.templatetype !== 'SYSTEM' &&
record.isready
},
args: (record, store) => {
var fields = ['name', 'displaytext', 'passwordenabled', 'ostypeid', 'isdynamicallyscalable']
if (['Admin'].includes(store.userInfo.roletype)) {
fields.push('templatetype')
}
return fields
},
mapping: {
templatetype: {
options: ['BUILTIN', 'USER', 'SYSTEM', 'ROUTING']
}
}
popup: true,
component: () => import('@/views/image/UpdateTemplate.vue')
},
{
api: 'updateTemplatePermissions',
Expand Down
Loading