fix: Change the policy name
Change the policy name. Depends-On: https://review.opendev.org/c/openstack/skyline-apiserver/+/837834 Change-Id: Ie57de25e1d7897c7bac6a8376a84c9ea0665ab7c
This commit is contained in:
parent
f91454fdcb
commit
8e36355e41
@ -33,7 +33,7 @@ export default class BackupsDetail extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get policy() {
|
get policy() {
|
||||||
return 'backup:show';
|
return 'trove:backup:show';
|
||||||
}
|
}
|
||||||
|
|
||||||
get detailInfos() {
|
get detailInfos() {
|
||||||
|
@ -42,7 +42,7 @@ export default class Create extends ModalAction {
|
|||||||
return t("Create Backups");
|
return t("Create Backups");
|
||||||
}
|
}
|
||||||
|
|
||||||
static policy = "backup:create";
|
static policy = "trove:backup:create";
|
||||||
|
|
||||||
static allowed() {
|
static allowed() {
|
||||||
return Promise.resolve(true);
|
return Promise.resolve(true);
|
||||||
|
@ -34,7 +34,7 @@ export default class Delete extends ConfirmAction {
|
|||||||
|
|
||||||
allowedCheckFunction = () => true;
|
allowedCheckFunction = () => true;
|
||||||
|
|
||||||
policy = 'instance:delete';
|
policy = 'trove:instance:delete';
|
||||||
|
|
||||||
onSubmit = (item) => {
|
onSubmit = (item) => {
|
||||||
return globalBackupsStore.delete({ id: item.id });
|
return globalBackupsStore.delete({ id: item.id });
|
||||||
|
@ -34,7 +34,7 @@ export default class Backups extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get policy() {
|
get policy() {
|
||||||
return 'backup:index';
|
return 'trove:backup:index';
|
||||||
}
|
}
|
||||||
|
|
||||||
get searchFilters() {
|
get searchFilters() {
|
||||||
|
@ -35,7 +35,7 @@ export default class ConfigurationsDetail extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get policy() {
|
get policy() {
|
||||||
return 'configuration:show';
|
return 'trove:configuration:show';
|
||||||
}
|
}
|
||||||
|
|
||||||
get detailInfos() {
|
get detailInfos() {
|
||||||
|
@ -44,7 +44,7 @@ export default class Create extends ModalAction {
|
|||||||
return t("Create Configurations");
|
return t("Create Configurations");
|
||||||
}
|
}
|
||||||
|
|
||||||
static policy = "configuration:create";
|
static policy = "trove:configuration:create";
|
||||||
|
|
||||||
static allowed() {
|
static allowed() {
|
||||||
return Promise.resolve(true);
|
return Promise.resolve(true);
|
||||||
|
@ -34,7 +34,7 @@ export default class Delete extends ConfirmAction {
|
|||||||
|
|
||||||
allowedCheckFunction = () => true;
|
allowedCheckFunction = () => true;
|
||||||
|
|
||||||
policy = 'instance:delete';
|
policy = 'trove:instance:delete';
|
||||||
|
|
||||||
onSubmit = (item) => {
|
onSubmit = (item) => {
|
||||||
return globalConfigurationsStore.delete({ id: item.id });
|
return globalConfigurationsStore.delete({ id: item.id });
|
||||||
|
@ -35,7 +35,7 @@ export default class Configurations extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get policy() {
|
get policy() {
|
||||||
return 'configuration:index';
|
return 'trove:configuration:index';
|
||||||
}
|
}
|
||||||
|
|
||||||
get searchFilters() {
|
get searchFilters() {
|
||||||
|
@ -29,7 +29,7 @@ export default class Backups extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get policy() {
|
get policy() {
|
||||||
return "instance:backups";
|
return "trove:instance:backups";
|
||||||
}
|
}
|
||||||
|
|
||||||
getColumns = () => {
|
getColumns = () => {
|
||||||
|
@ -20,7 +20,7 @@ export default class DatabaseDelete extends ConfirmAction {
|
|||||||
|
|
||||||
allowedCheckFunction = () => true;
|
allowedCheckFunction = () => true;
|
||||||
|
|
||||||
policy = "instance:extension:database:delete";
|
policy = "trove:instance:extension:database:delete";
|
||||||
|
|
||||||
onSubmit = (item) => {
|
onSubmit = (item) => {
|
||||||
const id = this.containerProps.detail.id;
|
const id = this.containerProps.detail.id;
|
||||||
|
@ -29,7 +29,7 @@ export default class Databases extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get policy() {
|
get policy() {
|
||||||
return "instance:detail"
|
return "trove:instance:detail"
|
||||||
}
|
}
|
||||||
|
|
||||||
get actionConfigs() {
|
get actionConfigs() {
|
||||||
|
@ -29,7 +29,7 @@ export default class Logs extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get policy() {
|
get policy() {
|
||||||
return "instance:guest_log_list";
|
return "trove:instance:guest_log_list";
|
||||||
}
|
}
|
||||||
|
|
||||||
getColumns = () => {
|
getColumns = () => {
|
||||||
|
@ -20,7 +20,7 @@ export default class UserDelete extends ConfirmAction {
|
|||||||
|
|
||||||
allowedCheckFunction = () => true;
|
allowedCheckFunction = () => true;
|
||||||
|
|
||||||
policy = 'instance:extension:user:delete';
|
policy = 'trove:instance:extension:user:delete';
|
||||||
|
|
||||||
onSubmit = (item) => {
|
onSubmit = (item) => {
|
||||||
const id = this.containerProps.detail.id;
|
const id = this.containerProps.detail.id;
|
||||||
|
@ -33,7 +33,7 @@ export default class Users extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get policy() {
|
get policy() {
|
||||||
return 'instance:extension:user:index';
|
return 'trove:instance:extension:user:index';
|
||||||
}
|
}
|
||||||
|
|
||||||
get hideCustom() {
|
get hideCustom() {
|
||||||
|
@ -34,7 +34,7 @@ export default class InstancesDetail extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get policy() {
|
get policy() {
|
||||||
return 'instance:detail';
|
return 'trove:instance:detail';
|
||||||
}
|
}
|
||||||
|
|
||||||
get listUrl() {
|
get listUrl() {
|
||||||
|
@ -34,7 +34,7 @@ export default class Delete extends ConfirmAction {
|
|||||||
|
|
||||||
allowedCheckFunction = () => true;
|
allowedCheckFunction = () => true;
|
||||||
|
|
||||||
policy = 'instance:delete';
|
policy = 'trove:instance:delete';
|
||||||
|
|
||||||
onSubmit = (item) => {
|
onSubmit = (item) => {
|
||||||
return globalInstancesStore.delete({ id: item.id });
|
return globalInstancesStore.delete({ id: item.id });
|
||||||
|
@ -34,7 +34,7 @@ export default class StepCreate extends StepAction {
|
|||||||
|
|
||||||
static path = '/database/instances/create';
|
static path = '/database/instances/create';
|
||||||
|
|
||||||
static policy = "instance:create";
|
static policy = "trove:instance:create";
|
||||||
|
|
||||||
static allowed() {
|
static allowed() {
|
||||||
return Promise.resolve(true);
|
return Promise.resolve(true);
|
||||||
|
@ -34,7 +34,7 @@ export default class Instances extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get policy() {
|
get policy() {
|
||||||
return 'instance:index';
|
return 'trove:instance:index';
|
||||||
}
|
}
|
||||||
|
|
||||||
get searchFilters() {
|
get searchFilters() {
|
||||||
|
Loading…
Reference in New Issue
Block a user