This commit is contained in:
2020-05-13 23:40:18 +00:00
parent 15b845813a
commit 93746e8a7a
2 changed files with 6 additions and 6 deletions

View File

@@ -772,9 +772,9 @@ function initForm(vm) {
////////////////////
//
function populateSelectionLists(vm) {
//http://localhost:7575/api/v8/DataListView/ViewList?ListKey=TestWidgetDataList
//http://localhost:7575/api/v8/data-list-view/viewlist?ListKey=TestWidgetDataList
return window.$gz.api
.get("DataListView/ViewList?ListKey=" + vm.dataListKey)
.get("data-list-view/viewlist?ListKey=" + vm.dataListKey)
.then(res => {
if (res.error) {
window.$gz.errorHandler.handleFormError(res.error, vm);
@@ -793,7 +793,7 @@ function fetchListView(vm) {
if (!vm.listViewId) {
return;
}
return window.$gz.api.get("DataListView/" + vm.listViewId).then(res => {
return window.$gz.api.get("data-list-view/" + vm.listViewId).then(res => {
if (res.error) {
window.$gz.errorHandler.handleFormError(res.error, vm);
} else {

View File

@@ -405,7 +405,7 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////
const FORM_KEY = "ay-data-list-view";
const API_BASE_URL = "DataListView/";
const API_BASE_URL = "data-list-view/";
let JUST_DELETED = false;
export default {
//unsaved changes are actually valid for this form so no need to warn
@@ -1219,7 +1219,7 @@ function setEffectiveListView(vm) {
//get default list view
//http://localhost:7575/api/v8/DataListView/default/TestWidgetDataList
return window.$gz.api
.get("DataListView/default/" + vm.dataListKey)
.get("data-list-view/default/" + vm.dataListKey)
.then(res => {
if (res.error) {
throw res.error;
@@ -1230,7 +1230,7 @@ function setEffectiveListView(vm) {
});
} else {
//listview has an id value
return window.$gz.api.get("DataListView/" + vm.listViewId).then(res => {
return window.$gz.api.get("data-list-view/" + vm.listViewId).then(res => {
if (res.error) {
throw res.error;
} else {