diff --git a/ui/src/config/section/infra/pods.js b/ui/src/config/section/infra/pods.js index ad2cfc9bea1..67f1976b64a 100644 --- a/ui/src/config/section/infra/pods.js +++ b/ui/src/config/section/infra/pods.js @@ -37,7 +37,8 @@ export default { icon: 'plus', label: 'label.add.pod', listView: true, - args: ['zoneid', 'name', 'gateway', 'netmask', 'startip', 'endip'] + popup: true, + component: () => import('@/views/infra/PodAdd.vue') }, { api: 'updatePod', diff --git a/ui/src/utils/plugins.js b/ui/src/utils/plugins.js index c0081e02c63..6c69cf191c8 100644 --- a/ui/src/utils/plugins.js +++ b/ui/src/utils/plugins.js @@ -68,7 +68,8 @@ export const pollJobPlugin = { console.error(`${catchMessage} - ${e}`) notification.error({ message: 'Error', - description: catchMessage + description: catchMessage, + duration: 0 }) catchMethod && catchMethod() }) diff --git a/ui/src/views/infra/PodAdd.vue b/ui/src/views/infra/PodAdd.vue new file mode 100644 index 00000000000..0f78f0b3b25 --- /dev/null +++ b/ui/src/views/infra/PodAdd.vue @@ -0,0 +1,303 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + + + + + +