diff --git a/PlacesApp/JS/AddPlace.js b/PlacesApp/JS/AddPlace.js index 1b81930..2ad7458 100644 --- a/PlacesApp/JS/AddPlace.js +++ b/PlacesApp/JS/AddPlace.js @@ -1,5 +1,5 @@ import React from "react"; -import { Text, View, FlatList, StyleSheet, TextInput, Button, Image, AsyncStorage } from 'react-native'; +import { Text, View, FlatList, StyleSheet, TextInput, Button, Image, AsyncStorage, Alert } from 'react-native'; import { readAsStringAsync } from "expo/src/FileSystem"; const URL = require("../package.json").serverURL; class AddPlace extends React.Component { @@ -17,7 +17,7 @@ class AddPlace extends React.Component { gpsLong: 0, placeDesc: "", placeImg: "https://loremflickr.com/300/300/city", - user: "user" + user: "" }; } @@ -74,6 +74,10 @@ class AddPlace extends React.Component { .then(response => response.json()) .then(responseJson => { return responseJson; + Alert.alert( + "Place created!", + "Place added to database" + ) }) .catch(error => { console.log("error"); diff --git a/docs/Third Semester Project.docx b/docs/Report/Project Case.docx similarity index 100% rename from docs/Third Semester Project.docx rename to docs/Report/Project Case.docx diff --git a/docs/3. semester SYS project autumn 2017 - Assignment.docx b/docs/Report/SYS Report case.docx similarity index 100% rename from docs/3. semester SYS project autumn 2017 - Assignment.docx rename to docs/Report/SYS Report case.docx diff --git a/docs/Semester_Report_Group8.docx b/docs/Report/Semester_Report_Group8.docx similarity index 100% rename from docs/Semester_Report_Group8.docx rename to docs/Report/Semester_Report_Group8.docx diff --git a/docs/~$andup_meeting_21_11_2017.docx b/docs/~$andup_meeting_21_11_2017.docx deleted file mode 100644 index 460af0d..0000000 Binary files a/docs/~$andup_meeting_21_11_2017.docx and /dev/null differ