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
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
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?
logout and shut down server get error appear in client??!

View File

@@ -913,14 +913,18 @@ async function clickHandler(menuItem) {
break;
case "report":
if (m.id != null) {
//last report selected
//last report selected is in m.id
m.vm.$router.push({
name: "ay-report",
params: { recordid: m.id, ayatype: window.$gz.type.User }
});
} else {
//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
//just bail out
@@ -937,6 +941,7 @@ async function clickHandler(menuItem) {
});
}
break;
case "directnotify":
//nav to direct notify with list of users appended to route
if (m.vm.obj.id == 0) {

View File

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

View File

@@ -917,14 +917,18 @@ async function clickHandler(menuItem) {
break;
case "report":
if (m.id != null) {
//last report selected
//last report selected is in m.id
m.vm.$router.push({
name: "ay-report",
params: { recordid: m.id, ayatype: window.$gz.type.User }
});
} else {
//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
//just bail out