Skip to content

Commit c362aaf

Browse files
authored
Merge pull request #78 from VocaDB/develop
Develop
2 parents 056adcb + b8048b4 commit c362aaf

File tree

10 files changed

+23
-6
lines changed

10 files changed

+23
-6
lines changed

ios/VocaDB/Info.plist

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>2.0.6</string>
20+
<string>2.0.7</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>20</string>
24+
<string>21</string>
2525
<key>LSRequiresIPhoneOS</key>
2626
<true/>
2727
<key>NSAppTransportSecurity</key>

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
]
1010
},
1111
"description": "VocaDB app is a mobile version of vocadb.net",
12-
"version": "2.0.6",
12+
"version": "2.0.7",
1313
"private": false,
1414
"devDependencies": {
1515
"@storybook/addon-actions": "^3.3.12",

src/common/constants/labels.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ export default {
157157
contact: 'contact',
158158
contactDescription: 'contactDescription',
159159
developerContact: 'developerContact',
160-
developerContactDescription: 'developerContactDescription'
160+
developerContactDescription: 'developerContactDescription',
161+
artistNotFound: 'artistNotFound',
162+
artistNotFoundDescription: 'artistNotFoundDescription'
161163

162164
};

src/common/i18n/locales/en.js

+2
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ t[labels.searchYoutube] = 'Search Youtube';
152152
t[labels.showAll] = 'Show all';
153153
t[labels.developerContact] = 'Developer contacts';
154154
t[labels.developerContactDescription] = 'Suggestion, Feedback or report any issue are welcome';
155+
t[labels.artistNotFound] = 'Artist not found';
156+
t[labels.artistNotFoundDescription] = 'This artist not exists in database';
155157

156158
// Menu
157159
t[labels.favoriteSongs] = 'Favorite songs';

src/common/i18n/locales/ja.js

+2
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ t[labels.searchYoutube] = 'Search Youtube';
152152
t[labels.showAll] = 'Show all';
153153
t[labels.developerContact] = 'Developer contacts';
154154
t[labels.developerContactDescription] = 'Suggestion, Feedback or report any issue are welcome';
155+
t[labels.artistNotFound] = 'Artist not found';
156+
t[labels.artistNotFoundDescription] = 'This artist not exists in database';
155157

156158
// Menu
157159
t[labels.favoriteSongs] = 'Favorite songs';

src/common/i18n/locales/ms.js

+2
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ t[labels.searchYoutube] = 'Search Youtube';
152152
t[labels.showAll] = 'Show all';
153153
t[labels.developerContact] = 'Developer contacts';
154154
t[labels.developerContactDescription] = 'Suggestion, Feedback or report any issue are welcome';
155+
t[labels.artistNotFound] = 'Artist not found';
156+
t[labels.artistNotFoundDescription] = 'This artist not exists in database';
155157

156158
// Menu
157159
t[labels.favoriteSongs] = 'Lagu kegemaran';

src/common/i18n/locales/ru.js

+2
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ t[labels.searchYoutube] = 'Search Youtube';
152152
t[labels.showAll] = 'Show all';
153153
t[labels.developerContact] = 'Developer contacts';
154154
t[labels.developerContactDescription] = 'Suggestion, Feedback or report any issue are welcome';
155+
t[labels.artistNotFound] = 'Artist not found';
156+
t[labels.artistNotFoundDescription] = 'This artist not exists in database';
155157

156158
// Menu
157159
t[labels.favoriteSongs] = 'Favorite songs';

src/common/i18n/locales/th.js

+2
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ t[labels.searchYoutube] = 'ลองค้นหาบน Youtube';
152152
t[labels.showAll] = 'แสดงทั้งหมด';
153153
t[labels.developerContact] = 'ติดต่อนักพัฒนา';
154154
t[labels.developerContactDescription] = 'มีคำถาม ข้อเสนอแนะ หรือพบปัญหาใดๆสามารถแจ้งได้ตามช่องทางต่างๆดังนี้';
155+
t[labels.artistNotFound] = 'ไม่พบข้อมูลศิลปิน';
156+
t[labels.artistNotFoundDescription] = 'ข้อมูลของศิลปินดังกล่าวไม่อยู่ในฐานข้อมูล';
155157

156158
// Menu
157159
t[labels.favoriteSongs] = 'เพลงโปรด';

src/common/i18n/locales/zh.js

+2
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ t[labels.searchYoutube] = 'Search Youtube';
152152
t[labels.showAll] = 'Show all';
153153
t[labels.developerContact] = 'Developer contacts';
154154
t[labels.developerContactDescription] = 'Suggestion, Feedback or report any issue are welcome';
155+
t[labels.artistNotFound] = 'Artist not found';
156+
t[labels.artistNotFoundDescription] = 'This artist not exists in database';
155157

156158
// Menu
157159
t[labels.favoriteSongs] = 'Favorite songs';

src/features/artistRole/ArtistRoleList/ArtistRoleList.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import React from 'react';
2-
import { View, Text, SectionList } from 'react-native';
2+
import { View, Text, SectionList, Alert } from 'react-native';
33
import Artist from '../../artist/ArtistRow/index';
44
import PropTypes from 'prop-types';
55
import images from '../../../common/assets/images';
66
import Theme from '../../../theme';
77
import _ from 'lodash';
88
import { translateArtistType } from './../../artist/artistConstant';
9+
import i18n from './../../../common/i18n'
910

1011
class ArtistRole extends React.Component {
1112

@@ -25,8 +26,10 @@ class ArtistRole extends React.Component {
2526
artist={artist.artistString}
2627
role={(displayRole)? artistRole.roles : undefined}
2728
onPress={() => {
28-
if(artist.id) {
29+
if(artistRole && artistRole.artist) {
2930
this.props.onPressItem(artist)
31+
} else {
32+
Alert.alert("Artist not found", "This artist not exists in database")
3033
}
3134
}}
3235
/>

0 commit comments

Comments
 (0)