diff --git a/Lib/lang.php b/Lib/lang.php
index 7e581b3..fa4bae6 100644
--- a/Lib/lang.php
+++ b/Lib/lang.php
@@ -58,9 +58,9 @@
'pl.grouperlite.message.flash.group-detail-members-failed' => 'Error in viewing the members of this group, please try again later.',
- 'pl.grouperlite.message.flash.add-subscriber-success' => 'Added subscriber.',
+ 'pl.grouperlite.message.flash.add-subscriber-success' => 'has been added to the group:',
'pl.grouperlite.message.flash.add-subscriber-failed' => 'Error in adding subscriber.',
- 'pl.grouperlite.message.flash.remove-subscriber-success' => 'Removed subscriber.',
+ 'pl.grouperlite.message.flash.remove-subscriber-success' => 'has been removed from the group:',
'pl.grouperlite.message.flash.remove-subscriber-failed' => 'Error in removing subscriber.',
'pl.grouperlite.table.name' => 'Name',
diff --git a/View/GrouperGroups/index.ctp b/View/GrouperGroups/index.ctp
index f696efe..8e40978 100644
--- a/View/GrouperGroups/index.ctp
+++ b/View/GrouperGroups/index.ctp
@@ -63,7 +63,6 @@
provide: {
collapsed: ,
optAction: "",
- allowAddSubscribers: ,
owner: ,
url: "",
grouperUrl: "",
@@ -174,22 +173,4 @@
-
-
- Form->create(false, array(
- 'url' => array('controller' => 'grouper_groups', 'action' => isset($optAction) ? $optAction : ''),
- 'class' => 'd-flex justify-content-center',
- 'id' => 'group-action'
- )); ?>
-
-
-
- Form->end(null); ?>
- */ ?>
\ No newline at end of file
+
\ No newline at end of file
diff --git a/webroot/js/autocomplete.js b/webroot/js/autocomplete.js
index 3625779..284ff57 100644
--- a/webroot/js/autocomplete.js
+++ b/webroot/js/autocomplete.js
@@ -8,12 +8,13 @@ export default {
data() {
return {
search: '',
- val: ''
+ val: '',
+ item: null,
};
},
methods: {
addUser(search) {
- this.$emit('add', search);
+ this.$emit('add', this.item);
}
},
mounted(el) {
@@ -24,11 +25,14 @@ export default {
maxShowItems: 10,
focus: function( event, ui ) {
this.search = ui.item.label;
+ this.val = ui.item.identifier;
+ this.item = ui.item;
return false;
},
select: (event, ui) => {
this.val = ui.item.identifier;
this.search = ui.item.label;
+ this.item = ui.item;
$("#addUserbutton").prop('disabled', false).focus();
return false;
},
@@ -39,7 +43,7 @@ export default {
@@ -172,10 +173,10 @@ export default {
{{ subscriber.name }}
|
-
+ |
{{ subscriber.id }}
|
-
+ |
diff --git a/webroot/js/page/GroupMember.js b/webroot/js/page/GroupMember.js
index c7b0735..bb4fd90 100644
--- a/webroot/js/page/GroupMember.js
+++ b/webroot/js/page/GroupMember.js
@@ -15,7 +15,7 @@ export default {
Members,
NestedTable,
},
- inject: ['txt', 'api', 'allowAddSubscribers', 'owner'],
+ inject: ['txt', 'api', 'owner'],
data() {
return {
view: null,
@@ -32,9 +32,6 @@ export default {
}
},
computed: {
- nestedColumns() {
- return this.owner ? ['name', 'role', 'description'] : ['name', 'description']
- },
routePath() {
return `/groupmember/co:${this.api.co}/glid:${this.api.glid}`;
}
@@ -44,7 +41,6 @@ export default {
if (view !== 'working' && view !== 'adhoc') {
view = 'adhoc';
}
- console.log(view);
this.view = view;
},
template: /*html*/`
@@ -61,7 +57,7 @@ export default {
@@ -73,7 +69,7 @@ export default {
@@ -81,6 +77,6 @@ export default {
-
+
`
}
\ No newline at end of file
diff --git a/webroot/js/page/GroupOwner.js b/webroot/js/page/GroupOwner.js
index efb5f4d..d330043 100644
--- a/webroot/js/page/GroupOwner.js
+++ b/webroot/js/page/GroupOwner.js
@@ -12,7 +12,7 @@ export default {
GroupsTable,
Members
},
- inject: ['api', 'allowAddSubscribers'],
+ inject: ['api'],
methods: {
showSubscribers(group) {
this.$refs.members.show(group);
@@ -26,13 +26,13 @@ export default {
-
+
`
}
\ No newline at end of file
diff --git a/webroot/js/pagination.js b/webroot/js/pagination.js
index 677f195..e0babab 100644
--- a/webroot/js/pagination.js
+++ b/webroot/js/pagination.js
@@ -32,6 +32,9 @@ export default {
},
perPage(newValue) {
setQueryParam('limit', newValue);
+ if (newValue === 'all') {
+ this.currentPage = 1;
+ }
},
records(newValue) {
if (this.numbers <= 1) {
|