Merged PR 19: #20 changed the test call because I removed the todos.
#20 changed the test call because I removed the todos. Related work items: #20
This commit is contained in:
@@ -392,7 +392,7 @@
|
|||||||
</v-snackbar>
|
</v-snackbar>
|
||||||
|
|
||||||
<v-list style="background-color: #F4F4F4;" lines="one">
|
<v-list style="background-color: #F4F4F4;" lines="one">
|
||||||
<v-list-item v-for=" item in itemList " :key="item" :title="item.id" :subtitle="item.title"></v-list-item>
|
<v-list-item v-for=" item in itemList " :key="item" :title="item.firstName" :subtitle="item.lastName"></v-list-item>
|
||||||
</v-list>
|
</v-list>
|
||||||
<FooterLayout></FooterLayout>
|
<FooterLayout></FooterLayout>
|
||||||
</div>
|
</div>
|
||||||
@@ -416,10 +416,8 @@ let errorNoAccessSnackBar = ref(false);
|
|||||||
|
|
||||||
async function callBackend() {
|
async function callBackend() {
|
||||||
try {
|
try {
|
||||||
const response = await client.get('/api/TodoItems?ListId=1&PageNumber=1&PageSize=10');
|
const response = await client.get('/api/JoinUs?PageNumber=1&PageSize=10');
|
||||||
const responseItems = response.data.items;
|
itemList.value = response.data.items;
|
||||||
const orderedResponseItems = responseItems.sort((a, b) => a.id - b.id);
|
|
||||||
itemList.value = orderedResponseItems
|
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
errorNoAccessSnackBar.value = true;
|
errorNoAccessSnackBar.value = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user