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