X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Faccounts%2Fsrc%2Faccount%2FaccountStore.js;h=002a9e10c284346452ebca151cacc7033021578a;hp=f6e2ef1df33c10e7f05fca860b53bf1e7f081b00;hb=refs%2Fchanges%2F10%2F310%2F1;hpb=e8b63f1993b397787576bdd884366a6640a5adea diff --git a/skyquake/plugins/accounts/src/account/accountStore.js b/skyquake/plugins/accounts/src/account/accountStore.js index f6e2ef1df..002a9e10c 100644 --- a/skyquake/plugins/accounts/src/account/accountStore.js +++ b/skyquake/plugins/accounts/src/account/accountStore.js @@ -1,5 +1,5 @@ /* - * + * * Copyright 2016 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -126,16 +126,6 @@ let AccountMeta = { ref: 'floating-ip-pool', optional: true }], - "openmano": [{ - label: "Host", - ref: 'host' - }, { - label: "Port", - ref: 'port' - }, { - label: "Tenant ID", - ref: 'tenant-id' - }], "openvim": [{ label: "Host", ref: 'host' @@ -174,9 +164,6 @@ let AccountMeta = { }, { "name": "Cloudsim", "account-type": "cloudsim_proxy" - }, { - "name": "Open Mano", - "account-type": "openmano" }, { "name": "AWS", "account-type": "aws" @@ -189,7 +176,6 @@ let AccountMeta = { }, image: { "aws": require("../../images/aws.png"), - "openmano": altImage || require("../../images/openmano.png"), "openvim": require("../../images/openmano.png"), "openstack": require("../../images/openstack.png"), "cloudsim_proxy": require("../../images/riftio.png"), @@ -199,7 +185,6 @@ let AccountMeta = { }, labelByType: { "aws": "AWS", - "openmano": "OpenStack", "openvim": "Open VIM", "openstack": "OpenStack", "cloudsim_proxy": "Cloudsim" @@ -216,6 +201,7 @@ export default class AccountStore { this.refreshingAll = false; this.sdnOptions = []; this.AccountMeta = AccountMeta; + this.showVIM = true; this.bindActions(AccountActions(this.alt)); this.registerAsync(AccountSource); this.exportPublicMethods({ @@ -248,6 +234,14 @@ export default class AccountStore { } refreshCloudAccountSuccess = () => { + } + getResourceOrchestratorSuccess = (data) => { + this.alt.actions.global.hideScreenLoader.defer(); + if(data['account-type'] == 'openmano') { + this.setState({ + showVIM: false + }) + } } deleteAccountSuccess = (response) => { this.setState({