diff --git a/Lib/lang.php b/Lib/lang.php
index d0dc12a..22fab32 100644
--- a/Lib/lang.php
+++ b/Lib/lang.php
@@ -127,6 +127,7 @@
'pl.grouperlite.action.clear' => 'Clear',
'pl.grouperlite.action.add-user' => 'Add',
'pl.grouperlite.action.remove-user' => 'Remove',
+ 'pl.grouperlite.action.enable-act-as' => 'Enable',
'pl.grouperlite.message.user-not-found-error' => 'Error: User not found.',
'pl.grouperlite.message.user-not-added-error' => 'Error: Unable to add user.',
'pl.grouperlite.message.user-not-removed-error' => 'Error: Unable to remove user.',
diff --git a/View/Elements/actAsPeopleAutocomplete.ctp b/View/Elements/actAsPeopleAutocomplete.ctp
index 49ee1b7..0bf351e 100644
--- a/View/Elements/actAsPeopleAutocomplete.ctp
+++ b/View/Elements/actAsPeopleAutocomplete.ctp
@@ -42,6 +42,7 @@ $suffix = Configure::read('debug') > 0 ? '?time=' . time() : '';
},
members: "= _txt('pl.grouperlite.action.members') ?>",
email: "= _txt('pl.grouperlite.value.email') ?>",
+ enableActAs: "= _txt('pl.grouperlite.action.enable-act-as') ?>",
close: "= _txt('pl.grouperlite.action.close') ?>",
remove: "= _txt('pl.grouperlite.action.remove-user') ?>",
addUser: "= _txt('pl.grouperlite.action.add-user') ?>",
@@ -122,6 +123,7 @@ $suffix = Configure::read('debug') > 0 ? '?time=' . time() : '';
addUser(item)"
- icon="add"/>
+ action="enableActAs"
+ icon=""/>
diff --git a/View/GrouperGroups/index.ctp b/View/GrouperGroups/index.ctp
index fe539cd..bc80b10 100644
--- a/View/GrouperGroups/index.ctp
+++ b/View/GrouperGroups/index.ctp
@@ -62,6 +62,7 @@ $suffix = Configure::read('debug') > 0 ? '?time=' . time() : '';
routes,
})
+ // TODO: Create the provides only once
const app = Vue.createApp({
provide: {
collapsed: = $vv_config['CoGrouperLiteWidget']['default_collapse'] == 'collapsed' ? 'true' : 'false' ?>,
@@ -168,10 +169,44 @@ $suffix = Configure::read('debug') > 0 ? '?time=' . time() : '';
Find
-
-
test
+
+ = $this->element('actAsPeopleAutocomplete',
+ compact('vv_config',
+ 'vv_coid',
+ 'vv_is_user_owner',
+ 'htmlId')
+ )?>
+
+
+
+
+
+
+
+
+ Email (official): nmastoris@admin.grnet.gr
+
+
+ Identifier (I2CollabPN): nickmastoris.mastoris@at.in...
+
+
+
+
-
John Doe
diff --git a/webroot/css/co-grouper-plugin.css b/webroot/css/co-grouper-plugin.css
index 2175744..6e8f27e 100644
--- a/webroot/css/co-grouper-plugin.css
+++ b/webroot/css/co-grouper-plugin.css
@@ -14,6 +14,10 @@
border-radius: .2rem;
}
+.btn-fit {
+ height: fit-content;
+}
+
a {
color: var(--primary);
}
diff --git a/webroot/js/autocomplete.js b/webroot/js/autocomplete.js
index a60e81d..da566ce 100644
--- a/webroot/js/autocomplete.js
+++ b/webroot/js/autocomplete.js
@@ -120,7 +120,7 @@ export default {
type="button"
@click="performAction()"
:disabled="isBtnDisabled">
- {{ this.icon }}
+ {{ this.icon }}
{{ btnTxt }}