mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 16:31:08 -06:00
webui: remove select action
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
parent
ec9539d0fd
commit
be3aadd06a
@ -1366,26 +1366,6 @@ exp.command_builder = function() {
|
||||
return that;
|
||||
}();
|
||||
|
||||
/**
|
||||
* No-op action which serves only for displaying label
|
||||
* @class details.select_action
|
||||
* @alternateClassName IPA.select_action
|
||||
* @extends facet.action
|
||||
*/
|
||||
exp.select_action = IPA.select_action = function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
spec.name = spec.name || 'select_action';
|
||||
spec.label = spec.label || '-- select action --';
|
||||
|
||||
var that = IPA.action(spec);
|
||||
|
||||
that.execute_action = function(facet) {
|
||||
};
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
/**
|
||||
* Invokes `facet.refresh`
|
||||
* @class details.refresh_action
|
||||
@ -2007,7 +1987,6 @@ exp.register = function() {
|
||||
var a = reg.action;
|
||||
var f = reg.facet;
|
||||
|
||||
a.register('select', exp.select_action);
|
||||
a.register('refresh', exp.refresh_action);
|
||||
a.register('reset', exp.reset_action);
|
||||
a.register('update', exp.update_action);
|
||||
|
@ -229,7 +229,7 @@ return {
|
||||
'dns_add_permission',
|
||||
'dns_remove_permission'
|
||||
],
|
||||
header_actions: ['select_action', 'enable', 'disable', 'delete',
|
||||
header_actions: ['enable', 'disable', 'delete',
|
||||
'add_permission', 'remove_permission'],
|
||||
state: {
|
||||
evaluators: [
|
||||
|
@ -77,7 +77,7 @@ return {
|
||||
'make_external',
|
||||
'delete'
|
||||
],
|
||||
header_actions: ['select_action', 'make_posix', 'make_external', 'delete'],
|
||||
header_actions: ['make_posix', 'make_external', 'delete'],
|
||||
state: {
|
||||
evaluators: [
|
||||
IPA.object_class_evaluator
|
||||
|
@ -81,7 +81,7 @@ var spec = {
|
||||
'disable',
|
||||
'delete'
|
||||
],
|
||||
header_actions: ['select_action', 'enable', 'disable', 'delete'],
|
||||
header_actions: ['enable', 'disable', 'delete'],
|
||||
state: {
|
||||
evaluators: [
|
||||
{
|
||||
|
@ -73,7 +73,7 @@ return {
|
||||
label: '@i18n:actions.automember_rebuild'
|
||||
}
|
||||
],
|
||||
header_actions: ['select_action', 'automember_rebuild']
|
||||
header_actions: ['automember_rebuild']
|
||||
},
|
||||
{
|
||||
$type: 'details',
|
||||
@ -194,7 +194,7 @@ return {
|
||||
'cert_revoke',
|
||||
'cert_restore'
|
||||
],
|
||||
header_actions: ['select_action', 'automember_rebuild'],
|
||||
header_actions: ['automember_rebuild'],
|
||||
state: {
|
||||
evaluators: [
|
||||
IPA.host.has_password_evaluator,
|
||||
|
@ -144,7 +144,7 @@ return {
|
||||
},
|
||||
'delete'
|
||||
],
|
||||
header_actions: ['select_action', 'otp_enable', 'otp_disable', 'delete'],
|
||||
header_actions: ['otp_enable', 'otp_disable', 'delete'],
|
||||
state: {
|
||||
evaluators: [
|
||||
{
|
||||
|
@ -79,7 +79,7 @@ var spec = {
|
||||
'disable',
|
||||
'delete'
|
||||
],
|
||||
header_actions: ['select_action', 'enable', 'disable', 'delete'],
|
||||
header_actions: ['enable', 'disable', 'delete'],
|
||||
state: {
|
||||
evaluators: [
|
||||
{
|
||||
|
@ -81,7 +81,7 @@ var spec = {
|
||||
'disable',
|
||||
'delete'
|
||||
],
|
||||
header_actions: ['select_action', 'enable', 'disable', 'delete'],
|
||||
header_actions: ['enable', 'disable', 'delete'],
|
||||
state: {
|
||||
evaluators: [
|
||||
{
|
||||
|
@ -83,7 +83,7 @@ return {
|
||||
hide_cond: ['self-service']
|
||||
}
|
||||
],
|
||||
header_actions: ['select_action', 'automember_rebuild'],
|
||||
header_actions: ['automember_rebuild'],
|
||||
control_buttons: [
|
||||
{
|
||||
name: 'disable',
|
||||
@ -271,7 +271,7 @@ return {
|
||||
label: '@i18n:actions.automember_rebuild'
|
||||
}
|
||||
],
|
||||
header_actions: ['select_action', 'enable', 'disable', 'delete', 'automember_rebuild'],
|
||||
header_actions: ['enable', 'disable', 'delete', 'automember_rebuild'],
|
||||
state: {
|
||||
evaluators: [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user