From commits-return-95749-archive-asf-public=cust-asf.ponee.io@cloudstack.apache.org Sat Dec 14 15:29:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 80EA4180629 for ; Sat, 14 Dec 2019 16:29:05 +0100 (CET) Received: (qmail 9810 invoked by uid 500); 14 Dec 2019 15:29:04 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 9801 invoked by uid 99); 14 Dec 2019 15:29:04 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Dec 2019 15:29:04 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 7E8808D80D; Sat, 14 Dec 2019 15:29:04 +0000 (UTC) Date: Sat, 14 Dec 2019 15:29:04 +0000 To: "commits@cloudstack.apache.org" Subject: [cloudstack-primate] branch master updated: compute: VM assign to other account/project/domain (#69) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <157633734426.29430.10032244450909971809@gitbox.apache.org> From: rohit@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: cloudstack-primate X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 8c5b0fc02a9b18c71fe241c187dd319e4ad38b36 X-Git-Newrev: b384cd4b5a298d5b958f0bb2631ff0d2d0dd6901 X-Git-Rev: b384cd4b5a298d5b958f0bb2631ff0d2d0dd6901 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. rohit pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git The following commit(s) were added to refs/heads/master by this push: new b384cd4 compute: VM assign to other account/project/domain (#69) b384cd4 is described below commit b384cd4b5a298d5b958f0bb2631ff0d2d0dd6901 Author: Ritchie Vincent AuthorDate: Sat Dec 14 15:28:56 2019 +0000 compute: VM assign to other account/project/domain (#69) Custom form to assign a VM to either an account or a project. Signed-off-by: Rohit Yadav --- src/config/section/compute.js | 2 + src/locales/en.json | 3 + src/utils/request.js | 4 +- src/views/AutogenView.vue | 9 +- src/views/compute/AssignInstance.vue | 274 +++++++++++++++++++++++++++++++++++ 5 files changed, 288 insertions(+), 4 deletions(-) diff --git a/src/config/section/compute.js b/src/config/section/compute.js index a4241a2..51a7ffc 100644 --- a/src/config/section/compute.js +++ b/src/config/section/compute.js @@ -241,6 +241,8 @@ export default { icon: 'user-add', label: 'Assign Instance to Another Account', dataView: true, + component: () => import('@/views/compute/AssignInstance'), + popup: true, show: (record) => { return ['Stopped'].includes(record.state) }, args: ['virtualmachineid', 'account', 'domainid'], mapping: { diff --git a/src/locales/en.json b/src/locales/en.json index ec0282e..d330ce2 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -631,6 +631,7 @@ "memoryusedgb": "Used", "memused": "Memory Usage", "message.edit.account": "Edit (\"-1\" indicates no limit to the amount of resources create)", +"message.assign.instance.another": "Please specify the account type, domain, account name and network (optional) of the new account.
If the default nic of the vm is on a shared network, CloudStack will check if the network can be used by the new account if you do not specify one network.
If the default nic of the vm is on a isolated network, and the new account has more one isolated networks, you should specify one.", "minCPUNumber": "Min CPU Cores", "minInstance": "Min Instances", "minIops": "Min IOPS", @@ -754,6 +755,7 @@ "redundantvpcrouter": "Redundant VPC", "reenterpassword": "Re-enter Password", "relationaloperator": "Operator", +"required": "Required", "requireshvm": "HVM", "requiresupgrade": "Requires Upgrade", "reservedSystemEndIp": "End Reserved system IP", @@ -836,6 +838,7 @@ "storagepolicy": "Storage policy", "storagetype": "Storage Type", "subdomainaccess": "Subdomain Access", +"submit": "Submit", "supportedServices": "Supported Services", "supportspublicaccess": "Supports Public Access", "supportsregionLevelvpc": "Supports Region Level VPC", diff --git a/src/utils/request.js b/src/utils/request.js index c38e7f4..235793a 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -57,10 +57,10 @@ const err = (error) => { // request interceptor service.interceptors.request.use(config => { - const project = Vue.ls.get(CURRENT_PROJECT) if (config && config.params) { config.params.response = 'json' - if (project && project.id) { + const project = Vue.ls.get(CURRENT_PROJECT) + if (!config.params.projectid && project && project.id) { config.params.projectid = project.id } } diff --git a/src/views/AutogenView.vue b/src/views/AutogenView.vue index 0050239..1e57073 100644 --- a/src/views/AutogenView.vue +++ b/src/views/AutogenView.vue @@ -19,10 +19,10 @@
- + - +