Commit 5e13db03 authored by tejaswi's avatar tejaswi
Browse files

Issuess changes

parent 55f7ad36
Showing with 63 additions and 37 deletions
+63 -37
...@@ -231,7 +231,7 @@ class ListItem extends React.Component { ...@@ -231,7 +231,7 @@ class ListItem extends React.Component {
<Text style={styles.signUpText0} >{TASKNO}:</Text> <Text style={styles.signUpText0} >{TASKNO}:</Text>
<Text style={styles.signUpText1} >{item.story_id.substring(0, 5).toUpperCase()}</Text> <Text style={styles.signUpText1} >{item.story_id.substring(0, 5).toUpperCase()}</Text>
<Text style={styles.signUpText2}> {item.assignedDate}</Text> <Text style={styles.signUpText2}> {item.assignedDate}</Text>
<View style={{marginLeft:'10%'}}> <View style={{marginLeft:'40%'}}>
{getMessagesCount( item.us_id,this.state.dataSource2,this.props.empId)} {getMessagesCount( item.us_id,this.state.dataSource2,this.props.empId)}
</View> </View>
</View> </View>
......
...@@ -349,7 +349,7 @@ export default class ReportBug extends Component { ...@@ -349,7 +349,7 @@ export default class ReportBug extends Component {
<TouchableOpacity style={styles.opensave} <TouchableOpacity style={styles.opensave}
onPress={this.reportBug()} > onPress={this.reportBug.bind(this)} >
<Text style={{ color: 'white' }}>Submit</Text> <Text style={{ color: 'white' }}>Submit</Text>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
...@@ -392,11 +392,11 @@ const styles = StyleSheet.create({ ...@@ -392,11 +392,11 @@ const styles = StyleSheet.create({
flex: 1, flex: 1,
...Platform.select({ ...Platform.select({
ios: { ios: {
backgroundColor: '#f1f0ef', margin: 20, height: 30, alignItems: backgroundColor: 'orange', margin: 20, height: 30, alignItems:
"center", justifyContent: 'center' "center", justifyContent: 'center'
}, },
android: { android: {
backgroundColor: '#f1f0ef', margin: 20, height: 30, alignItems: backgroundColor: 'orange', margin: 20, height: 30, alignItems:
"center", justifyContent: 'center' "center", justifyContent: 'center'
}, },
}), }),
......
...@@ -344,9 +344,9 @@ class ListItem extends React.Component { ...@@ -344,9 +344,9 @@ class ListItem extends React.Component {
</View> </View>
</View> </View>
<Text style={{width:'60%',color:'grey'}}> {getLastMsg(this.state.dataSource2, item.id)}</Text> <Text style={{width:'90%',color:'grey'}}> {getLastMsg(this.state.dataSource2, item.id)}</Text>
<View style={{ justifyContent: 'flex-end',flexDirection: 'row' }}> <View style={{ justifyContent: 'flex-end',flexDirection: 'row' ,marginTop:5}}>
{buttonDelete} {buttonDelete}
<View style={{ flexDirection: 'row', justifyContent: 'flex-end', alignItems: 'center' }}> <View style={{ flexDirection: 'row', justifyContent: 'flex-end', alignItems: 'center' }}>
<TouchableOpacity style={{ padding: 5, backgroundColor: '#214274', marginLeft: 10, borderRadius: 10 }} onPress={() => this.props.exitGroup()}> <TouchableOpacity style={{ padding: 5, backgroundColor: '#214274', marginLeft: 10, borderRadius: 10 }} onPress={() => this.props.exitGroup()}>
...@@ -1611,7 +1611,7 @@ export default class UserGroupChat extends Component { ...@@ -1611,7 +1611,7 @@ export default class UserGroupChat extends Component {
/> />
<TouchableOpacity onPress={this.openModal} style={styles.bottomView}> <TouchableOpacity onPress={this.openModal} style={styles.bottomView}>
<View style={styles.bottomView} > <View >
<Text style={styles.textStyle}>Create Group</Text> <Text style={styles.textStyle}>Create Group</Text>
...@@ -1669,7 +1669,7 @@ export default class UserGroupChat extends Component { ...@@ -1669,7 +1669,7 @@ export default class UserGroupChat extends Component {
// onItemSelect={(item) => this.setState({ assignedto: item.id })} // onItemSelect={(item) => this.setState({ assignedto: item.id })}
selectedItems={selectedItems} selectedItems={selectedItems}
styleItemsContainer={{ height: 150 }} styleItemsContainer={{ height: 150 }}
selectText="Select Employees" selectText=" Select Employees"
searchInputPlaceholderText="Search Items..." searchInputPlaceholderText="Search Items..."
onChangeInput={(text) => console.log(text)} onChangeInput={(text) => console.log(text)}
// altFontFamily="ProximaNova-Light" // altFontFamily="ProximaNova-Light"
......
...@@ -11,7 +11,7 @@ import { widthPercentageToDP as wp, heightPercentageToDP as hp } from 'react-nat ...@@ -11,7 +11,7 @@ import { widthPercentageToDP as wp, heightPercentageToDP as hp } from 'react-nat
import { TouchableOpacity } from 'react-native-gesture-handler'; import { TouchableOpacity } from 'react-native-gesture-handler';
// import Icon from 'react-native-vector-icons/FontAwesome'; // import Icon from 'react-native-vector-icons/FontAwesome';
import AsyncStorage from '@react-native-community/async-storage'; import AsyncStorage from '@react-native-community/async-storage';
import { API,Client_URL } from "../WebServices/RestClient"; import { API, Client_URL } from "../WebServices/RestClient";
import NetInfo from '@react-native-community/netinfo'; import NetInfo from '@react-native-community/netinfo';
import Snackbar from 'react-native-snackbar'; import Snackbar from 'react-native-snackbar';
import ModalSelector from 'react-native-modal-selector'; import ModalSelector from 'react-native-modal-selector';
...@@ -253,7 +253,7 @@ export default class UserProfile extends Component { ...@@ -253,7 +253,7 @@ export default class UserProfile extends Component {
}) })
}).then((response) => response.json()) }).then((response) => response.json())
.then((responseJson) => { .then((responseJson) => {
//alert(JSON.stringify(responseJson)); alert(JSON.stringify(responseJson));
console.log(JSON.stringify(responseJson)) console.log(JSON.stringify(responseJson))
console.log(JSON.stringify("empInfo" + responseJson.data[0])) console.log(JSON.stringify("empInfo" + responseJson.data[0]))
db.addProfile(responseJson.data, cropcode).then((result) => { db.addProfile(responseJson.data, cropcode).then((result) => {
...@@ -280,6 +280,8 @@ export default class UserProfile extends Component { ...@@ -280,6 +280,8 @@ export default class UserProfile extends Component {
free_licenses: responseJson.free_licenses, free_licenses: responseJson.free_licenses,
reportingManager: responseJson.data[0].reportingManager, reportingManager: responseJson.data[0].reportingManager,
functionalManager: responseJson.data[0].functionalManager, functionalManager: responseJson.data[0].functionalManager,
remaining_projects: responseJson.remaining_projects,
// free_licenses: responseJson.remaining_projects,
}, },
...@@ -405,9 +407,9 @@ export default class UserProfile extends Component { ...@@ -405,9 +407,9 @@ export default class UserProfile extends Component {
if (responseJson.status === 'True') { if (responseJson.status === 'True') {
// this.refs.toast.showCenter('Epic Squad is Deactivated', Toast.Duration.long, Toast.Position.center); // this.refs.toast.showCenter('Epic Squad is Deactivated', Toast.Duration.long, Toast.Position.center);
console.log("done") console.log("done")
this.setState({ open: false }) this.setState({ open: false })
} }
else { else {
// alert("Hello111"); // alert("Hello111");
...@@ -835,7 +837,7 @@ export default class UserProfile extends Component { ...@@ -835,7 +837,7 @@ export default class UserProfile extends Component {
})} })}
/> */} /> */}
<View style={{ flexDirection: 'row', }}> <View style={{ flexDirection: 'row', }}>
<View style={{ paddingLeft: '2%', width: wp('32%') }}> <View style={{ paddingLeft: '2%', width: wp('42%') }}>
<Text>{EMPLOYEEID}</Text> <Text>{EMPLOYEEID}</Text>
</View> </View>
...@@ -848,7 +850,7 @@ export default class UserProfile extends Component { ...@@ -848,7 +850,7 @@ export default class UserProfile extends Component {
<View style={{ flexDirection: 'row', paddingTop: 10, }}> <View style={{ flexDirection: 'row', paddingTop: 10, }}>
<View style={{ paddingLeft: '2%', width: wp('32%') }}> <View style={{ paddingLeft: '2%', width: wp('42%') }}>
<Text>{USERNAME}</Text> <Text>{USERNAME}</Text>
</View> </View>
...@@ -862,7 +864,7 @@ export default class UserProfile extends Component { ...@@ -862,7 +864,7 @@ export default class UserProfile extends Component {
</View> </View>
<View style={{ flexDirection: 'row', paddingTop: 10, }}> <View style={{ flexDirection: 'row', paddingTop: 10, }}>
<View style={{ paddingLeft: '2%', width: wp('32%') }}> <View style={{ paddingLeft: '2%', width: wp('42%') }}>
<Text>{FULLNAME1}</Text> <Text>{FULLNAME1}</Text>
</View> </View>
...@@ -877,7 +879,7 @@ export default class UserProfile extends Component { ...@@ -877,7 +879,7 @@ export default class UserProfile extends Component {
<View style={{ flexDirection: 'row', paddingTop: 10, }}> <View style={{ flexDirection: 'row', paddingTop: 10, }}>
<View style={{ paddingLeft: '2%', width: wp('32%') }}> <View style={{ paddingLeft: '2%', width: wp('42%') }}>
<Text>{EMAIL}</Text> <Text>{EMAIL}</Text>
</View> </View>
...@@ -917,7 +919,7 @@ export default class UserProfile extends Component { ...@@ -917,7 +919,7 @@ export default class UserProfile extends Component {
</View> */} </View> */}
<View style={{ flexDirection: 'row', paddingTop: 10, }}> <View style={{ flexDirection: 'row', paddingTop: 10, }}>
<View style={{ paddingLeft: '2%', width: wp('32%'), }}> <View style={{ paddingLeft: '2%', width: wp('42%'), }}>
<Text>{MOBILE}</Text> <Text>{MOBILE}</Text>
</View> </View>
...@@ -981,7 +983,7 @@ export default class UserProfile extends Component { ...@@ -981,7 +983,7 @@ export default class UserProfile extends Component {
<View style={{ flexDirection: 'row', paddingTop: 10, }}> <View style={{ flexDirection: 'row', paddingTop: 10, }}>
<View style={{ paddingLeft: '2%', width: wp('32%') }}> <View style={{ paddingLeft: '2%', width: wp('42%') }}>
<Text>{ROLE}</Text> <Text>{ROLE}</Text>
</View> </View>
...@@ -994,7 +996,7 @@ export default class UserProfile extends Component { ...@@ -994,7 +996,7 @@ export default class UserProfile extends Component {
</View> </View>
<View style={{ flexDirection: 'row', paddingTop: 10 }}> <View style={{ flexDirection: 'row', paddingTop: 10 }}>
<View style={{ paddingLeft: '2%', width: wp('32%') }}> <View style={{ paddingLeft: '2%', width: wp('42%') }}>
<Text>{STATUS1}</Text> <Text>{STATUS1}</Text>
</View> </View>
...@@ -1007,7 +1009,7 @@ export default class UserProfile extends Component { ...@@ -1007,7 +1009,7 @@ export default class UserProfile extends Component {
</View> </View>
<View style={{ flexDirection: 'row', paddingTop: 10 }}> <View style={{ flexDirection: 'row', paddingTop: 10 }}>
<View style={{ paddingLeft: '2%', width: wp('32%') }}> <View style={{ paddingLeft: '2%', width: wp('42%') }}>
<Text>Working Hours</Text> <Text>Working Hours</Text>
</View> </View>
...@@ -1020,13 +1022,26 @@ export default class UserProfile extends Component { ...@@ -1020,13 +1022,26 @@ export default class UserProfile extends Component {
</View> </View>
<View style={{ flexDirection: 'row', paddingTop: 10 }}> <View style={{ flexDirection: 'row', paddingTop: 10 }}>
<View style={{ paddingLeft: '2%', width: wp('32%'),paddingTop:4 }}> <View style={{ paddingLeft: '2%', width: wp('42%') }}>
<Text>Remaining Projects</Text>
</View>
<View>
<Text>{this.state.remaining_projects}</Text>
</View>
</View>
<View style={{ flexDirection: 'row', paddingTop: 10 }}>
<View style={{ paddingLeft: '2%', width: wp('42%'), paddingTop: 4 }}>
<Text>Account Status</Text> <Text>Account Status</Text>
</View> </View>
<View> <View>
{this.state.email_status === "1" ? <Text style={{color:'green'}}>Account Verified</Text> : {this.state.email_status === "1" ? <Text style={{ color: 'green', paddingTop: 5 }}>Account Verified</Text> :
<TouchableOpacity style={{height:30}} onPress={this.accountVerify()} > <TouchableOpacity style={{ height: 30, paddingTop: 5 }} onPress={this.accountVerify()} >
<Text style={styles.submit}>Verify</Text> <Text style={styles.submit}>Verify</Text>
</TouchableOpacity>} </TouchableOpacity>}
</View> </View>
......
...@@ -100,6 +100,12 @@ export default class UserSupport extends Component { ...@@ -100,6 +100,12 @@ export default class UserSupport extends Component {
if (responseJson.status === 'True') { if (responseJson.status === 'True') {
this.setState({
bug_one_sen: '',
steps_for_bug:''
});
this.props.navigation.navigate('MyTask'); this.props.navigation.navigate('MyTask');
} }
...@@ -158,7 +164,7 @@ reportBug(){ ...@@ -158,7 +164,7 @@ reportBug(){
}, },
}).then((response) => response.json()) }).then((response) => response.json())
.then((responseJson) => { .then((responseJson) => {
//alert(responseJson); // alert(responseJson);
console.log(JSON.stringify(responseJson)); console.log(JSON.stringify(responseJson));
console.log(responseJson); console.log(responseJson);
// alert("Your report was sent successfully") // alert("Your report was sent successfully")
...@@ -166,16 +172,21 @@ reportBug(){ ...@@ -166,16 +172,21 @@ reportBug(){
if (responseJson.status === 'True') { if (responseJson.status === 'True') {
alert(responseJson.message); alert(responseJson.message);
this.setState({
bug_one_sen: '',
steps_for_bug:''
});
this.props.navigation.navigate('MyTask'); this.props.navigation.navigate('MyTask');
} }
else { else {
console.log(JSON.stringify(responseJson)); console.log(JSON.stringify(responseJson));
log("Warn", "Error found"); log("Warn", "Error found");
// alert("error"); // alert("error");
// alert(responseJson.message) alert(responseJson.message)
} }
}).catch((error) => { }).catch((error) => {
...@@ -329,7 +340,7 @@ render() { ...@@ -329,7 +340,7 @@ render() {
<TouchableOpacity style={styles.opensave} <TouchableOpacity style={styles.opensave}
onPress={this.reportBug()} > onPress={this.reportBug.bind(this)} >
<Text style={{ color: 'white' }}>Submit</Text> <Text style={{ color: 'white' }}>Submit</Text>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
...@@ -372,11 +383,11 @@ const styles = StyleSheet.create({ ...@@ -372,11 +383,11 @@ const styles = StyleSheet.create({
flex: 1, flex: 1,
...Platform.select({ ...Platform.select({
ios: { ios: {
backgroundColor: '#f1f0ef', margin: 20, height: 30, alignItems: backgroundColor: 'orange', margin: 20, height: 30, alignItems:
"center", justifyContent: 'center' "center", justifyContent: 'center'
}, },
android: { android: {
backgroundColor: '#f1f0ef', margin: 20, height: 30, alignItems: backgroundColor: 'orange', margin: 20, height: 30, alignItems:
"center", justifyContent: 'center' "center", justifyContent: 'center'
}, },
}), }),
......
/*****MySql********/ /*****MySql********/
//pre production environment (development) //pre production environment (development)
export const API = "https://api-single.agile24x7.com/release/"; // export const API = "https://api-single.agile24x7.com/release/";
export const CHATAPI = "https://api-single.agile24x7.com/release"; // export const CHATAPI = "https://api-single.agile24x7.com/release";
export const ReportsAPI = "https://testapiv2reporting.agile24x7.com/"; // export const ReportsAPI = "https://testapiv2reporting.agile24x7.com/";
export const Client_URL = "https://sdtest.agile24x7.com/#/"; // export const Client_URL = "https://sdtest.agile24x7.com/#/";
//production environment //production environment
// export const API = "https://api-single.agile24x7.com/Migration/"; // export const API = "https://api-single.agile24x7.com/Migration/";
...@@ -17,10 +17,10 @@ export const Client_URL = "https://sdtest.agile24x7.com/#/"; ...@@ -17,10 +17,10 @@ export const Client_URL = "https://sdtest.agile24x7.com/#/";
// //pre production environment (development) // //pre production environment (development)
// export const API = "https://api-single.agile24x7.com/pg_migration/"; export const API = "https://api-single.agile24x7.com/pg_migration/";
// export const CHATAPI = "https://api-single.agile24x7.com/pg_migration"; export const CHATAPI = "https://api-single.agile24x7.com/pg_migration";
// export const ReportsAPI = "https://pgtestreporting.agile24x7.com/"; export const ReportsAPI = "https://pgtestreporting.agile24x7.com/";
// export const Client_URL = "https://pgtest.agile24x7.com/#/"; export const Client_URL = "https://pgtest.agile24x7.com/#/";
//production environment //production environment
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment