fix: Fix action colum of the Table
Fix action list for listener of loaderbalance Closes-Bug: #2042932 Change-Id: Ie6573cbb7145baf043606c6374ff14ddd83fa4ac
This commit is contained in:
parent
7af05b1ef2
commit
54e64ea9fc
@ -822,6 +822,7 @@
|
|||||||
"Domain ID/Name": "Domain ID/Name",
|
"Domain ID/Name": "Domain ID/Name",
|
||||||
"Domain Manager": "Domain Manager",
|
"Domain Manager": "Domain Manager",
|
||||||
"Domain Name": "Domain Name",
|
"Domain Name": "Domain Name",
|
||||||
|
"Domain name ending in.": "Domain name ending in.",
|
||||||
"Domains": "Domains",
|
"Domains": "Domains",
|
||||||
"Dominica": "Dominica",
|
"Dominica": "Dominica",
|
||||||
"Down": "Down",
|
"Down": "Down",
|
||||||
|
@ -821,7 +821,8 @@
|
|||||||
"Domain ID": "",
|
"Domain ID": "",
|
||||||
"Domain ID/Name": "",
|
"Domain ID/Name": "",
|
||||||
"Domain Manager": "Domain 관리자",
|
"Domain Manager": "Domain 관리자",
|
||||||
"Domain Name": "",
|
"Domain Name": "도메인 이름",
|
||||||
|
"Domain name ending in.": "도메인 이름 끝",
|
||||||
"Domains": "",
|
"Domains": "",
|
||||||
"Dominica": "",
|
"Dominica": "",
|
||||||
"Down": "",
|
"Down": "",
|
||||||
|
@ -822,6 +822,7 @@
|
|||||||
"Domain ID/Name": "域ID/名称",
|
"Domain ID/Name": "域ID/名称",
|
||||||
"Domain Manager": "域管理员",
|
"Domain Manager": "域管理员",
|
||||||
"Domain Name": "域名",
|
"Domain Name": "域名",
|
||||||
|
"Domain name ending in.": "域名结尾",
|
||||||
"Domains": "域",
|
"Domains": "域",
|
||||||
"Dominica": "多米尼克国",
|
"Dominica": "多米尼克国",
|
||||||
"Down": "停止",
|
"Down": "停止",
|
||||||
|
@ -45,13 +45,13 @@ export class Set extends ModalAction {
|
|||||||
type: 'input',
|
type: 'input',
|
||||||
required: true,
|
required: true,
|
||||||
placeholder: t('smtp.example.com'),
|
placeholder: t('smtp.example.com'),
|
||||||
tip: ('Domain name ending in.')
|
tip: t('Domain name ending in.'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'description',
|
name: 'description',
|
||||||
label: t('Description'),
|
label: t('Description'),
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
tip: t('Details about the PTR record.')
|
tip: t('Details about the PTR record.'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'ttl',
|
name: 'ttl',
|
||||||
@ -61,12 +61,12 @@ export class Set extends ModalAction {
|
|||||||
tip: t('Time To Live in seconds.'),
|
tip: t('Time To Live in seconds.'),
|
||||||
placeholder: t('3600'),
|
placeholder: t('3600'),
|
||||||
},
|
},
|
||||||
]
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
onSubmit = (values) => {
|
onSubmit = (values) => {
|
||||||
const { id } = this.item;
|
const { id } = this.item;
|
||||||
return this.store.set({ id: id }, values);
|
return this.store.set({ id }, values);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ export default class Unset extends ConfirmAction {
|
|||||||
allowedCheckFunc = (item) => {
|
allowedCheckFunc = (item) => {
|
||||||
if (item.ptrdname !== null && item.status === 'ACTIVE') return true;
|
if (item.ptrdname !== null && item.status === 'ACTIVE') return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
};
|
||||||
|
|
||||||
policy = 'instance:delete';
|
policy = 'instance:delete';
|
||||||
|
|
||||||
@ -46,6 +46,6 @@ export default class Unset extends ConfirmAction {
|
|||||||
};
|
};
|
||||||
|
|
||||||
onSubmit = (item) => {
|
onSubmit = (item) => {
|
||||||
return globalReverseStore.unset({ id: item.id }, { 'ptrdname': null });
|
return globalReverseStore.unset({ id: item.id }, { ptrdname: null });
|
||||||
};
|
};
|
||||||
}
|
}
|
@ -22,7 +22,7 @@ const actionConfigs = {
|
|||||||
{
|
{
|
||||||
action: Unset,
|
action: Unset,
|
||||||
},
|
},
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
|
|
||||||
import { observer, inject } from 'mobx-react';
|
import { observer, inject } from 'mobx-react';
|
||||||
import Base from 'containers/List';
|
import Base from 'containers/List';
|
||||||
import actionConfigs from './actions';
|
|
||||||
import globalReverseStore, { ReverseStore } from 'src/stores/designate/reverse';
|
import globalReverseStore, { ReverseStore } from 'src/stores/designate/reverse';
|
||||||
|
import actionConfigs from './actions';
|
||||||
|
|
||||||
export class Reverse extends Base {
|
export class Reverse extends Base {
|
||||||
init() {
|
init() {
|
||||||
@ -55,8 +55,7 @@ export class Reverse extends Base {
|
|||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
},
|
},
|
||||||
]
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default inject('rootStore')(observer(Reverse));
|
export default inject('rootStore')(observer(Reverse));
|
@ -16,6 +16,7 @@ import { observer, inject } from 'mobx-react';
|
|||||||
import Base from 'containers/List';
|
import Base from 'containers/List';
|
||||||
import { provisioningStatusCodes } from 'resources/octavia/lb';
|
import { provisioningStatusCodes } from 'resources/octavia/lb';
|
||||||
import { ListenerStore } from 'stores/octavia/listener';
|
import { ListenerStore } from 'stores/octavia/listener';
|
||||||
|
import { emptyActionConfig } from 'utils/constants';
|
||||||
import { actionConfigs, adminActions } from './Actions';
|
import { actionConfigs, adminActions } from './Actions';
|
||||||
|
|
||||||
export class Listeners extends Base {
|
export class Listeners extends Base {
|
||||||
@ -53,6 +54,10 @@ export class Listeners extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get actionConfigs() {
|
get actionConfigs() {
|
||||||
|
const { provisioning_status } = this.props.detail;
|
||||||
|
if (provisioning_status !== 'ACTIVE') {
|
||||||
|
return emptyActionConfig;
|
||||||
|
}
|
||||||
if (this.isAdminPage) {
|
if (this.isAdminPage) {
|
||||||
return adminActions;
|
return adminActions;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user