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-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>
|
||||
<FooterLayout></FooterLayout>
|
||||
</div>
|
||||
@@ -416,10 +416,8 @@ let errorNoAccessSnackBar = ref(false);
|
||||
|
||||
async function callBackend() {
|
||||
try {
|
||||
const response = await client.get('/api/TodoItems?ListId=1&PageNumber=1&PageSize=10');
|
||||
const responseItems = response.data.items;
|
||||
const orderedResponseItems = responseItems.sort((a, b) => a.id - b.id);
|
||||
itemList.value = orderedResponseItems
|
||||
const response = await client.get('/api/JoinUs?PageNumber=1&PageSize=10');
|
||||
itemList.value = response.data.items;
|
||||
|
||||
} catch (error) {
|
||||
errorNoAccessSnackBar.value = true;
|
||||
|
||||
Reference in New Issue
Block a user