This commit is contained in:
2020-12-01 16:05:18 +00:00
parent f700702215
commit adf8eee4d7
5 changed files with 39 additions and 22 deletions

View File

@@ -1,6 +1,9 @@
Grab bag stuff that didn't fit into official TODO Grab bag stuff that didn't fit into official TODO
todo: Users / Contacts lists not reportable from main UI
not using regular DataList for user lists and contact lists?
currently not reportable as a list easily since not a GZDataList but could probably rectify that even without switching to datalist
likely just a bit of code required to enable it
todo: PROBABLY NOT REQUIRED SEE BOTTOM LINE BELOW: missing feature, can't filter widgetlist by User due to no UserList being available todo: PROBABLY NOT REQUIRED SEE BOTTOM LINE BELOW: missing feature, can't filter widgetlist by User due to no UserList being available
Is this meant to be text only filter and we have no id filter system? Is this meant to be text only filter and we have no id filter system?

View File

@@ -7,9 +7,11 @@ MISC ITEMS THAT CAME UP
todo: User list selection checkbox is for...?
Report also doesn't seem to work on that form, wtf?
remove it if there isn't a purpose to it and bulk ops are not supported todo: v8migrate customer account users coming over as regular non sched users
though the contacts are correctly importing
They need to appear as contacts when imported
todo: logout doesn't shut off check for notifications? todo: logout doesn't shut off check for notifications?
logout and shut down server get error appear in client??! logout and shut down server get error appear in client??!

View File

@@ -913,14 +913,18 @@ async function clickHandler(menuItem) {
break; break;
case "report": case "report":
if (m.id != null) { if (m.id != null) {
//last report selected //last report selected is in m.id
m.vm.$router.push({ m.vm.$router.push({
name: "ay-report", name: "ay-report",
params: { recordid: m.id, ayatype: window.$gz.type.User } params: { recordid: m.id, ayatype: window.$gz.type.User }
}); });
} else { } else {
//general report selector chosen //general report selector chosen
let res = await m.vm.$refs.reportSelector.open();
let res = await m.vm.$refs.reportSelector.open({
ObjectType: window.$gz.type.User,
selectedRowIds: [m.vm.obj.id]
});
//if null for no selection //if null for no selection
//just bail out //just bail out
@@ -937,6 +941,7 @@ async function clickHandler(menuItem) {
}); });
} }
break; break;
case "directnotify": case "directnotify":
//nav to direct notify with list of users appended to route //nav to direct notify with list of users appended to route
if (m.vm.obj.id == 0) { if (m.vm.obj.id == 0) {

View File

@@ -11,7 +11,6 @@
hide-default-footer hide-default-footer
@click:row="rowClick" @click:row="rowClick"
:sort-by="['name']" :sort-by="['name']"
show-select
:header-props="{ sortByText: $ay.t('Sort') }" :header-props="{ sortByText: $ay.t('Sort') }"
data-cy="usersTable" data-cy="usersTable"
> >
@@ -223,20 +222,24 @@ function generateMenu(vm) {
} }
//STUB REPORTS //STUB REPORTS
//Report not Print, print is a further option //## NOTE: This form is not based on a DataList so it cannot be printed
menuOptions.menuItems.push({ //if it was a datalist then all would be as normal
title: "Report", //not sure why it's not a datalist
icon: "$ayiFileAlt",
key: FORM_KEY + ":report",
vm: vm
});
menuOptions.menuItems.push({ //Report not Print, print is a further option
title: "stub: Last report used", // menuOptions.menuItems.push({
icon: "$ayiFileAlt", // title: "Report",
key: FORM_KEY + ":report:STUBlastusedreportid", // icon: "$ayiFileAlt",
vm: vm // key: FORM_KEY + ":report",
}); // vm: vm
// });
// menuOptions.menuItems.push({
// title: "stub: Last report used",
// icon: "$ayiFileAlt",
// key: FORM_KEY + ":report:STUBlastusedreportid",
// vm: vm
// });
// menuOptions.menuItems.push({ // menuOptions.menuItems.push({
// title: "Extensions", // title: "Extensions",

View File

@@ -917,14 +917,18 @@ async function clickHandler(menuItem) {
break; break;
case "report": case "report":
if (m.id != null) { if (m.id != null) {
//last report selected //last report selected is in m.id
m.vm.$router.push({ m.vm.$router.push({
name: "ay-report", name: "ay-report",
params: { recordid: m.id, ayatype: window.$gz.type.User } params: { recordid: m.id, ayatype: window.$gz.type.User }
}); });
} else { } else {
//general report selector chosen //general report selector chosen
let res = await m.vm.$refs.reportSelector.open();
let res = await m.vm.$refs.reportSelector.open({
ObjectType: window.$gz.type.User,
selectedRowIds: [m.vm.obj.id]
});
//if null for no selection //if null for no selection
//just bail out //just bail out