Skip to content

Commit 3c55eb1

Browse files
committed
[native] fix: Don't allow import of git profiles
see #2102 Signed-off-by: Marcel Klehr <[email protected]>
1 parent 6888544 commit 3c55eb1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ui/store/native/actions.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,12 @@ export const actionsDefinition = {
153153
await Account.import(filteredAccounts)
154154
await dispatch(actions.LOAD_ACCOUNTS)
155155
if (filteredAccounts.length !== accounts.length) {
156-
throw new Error('Cannot import Google Drive profiles on mobile. Please create the profile(s) manually.')
156+
if (accounts.find(account => account.type === 'google-drive')) {
157+
throw new Error('Cannot import Google Drive profiles on mobile. Please create the profile(s) manually.')
158+
}
159+
if (accounts.find(account => account.type === 'git')) {
160+
throw new Error('Cannot import Git profiles on mobile. Git is not supported on mobile, yet.')
161+
}
157162
}
158163
},
159164
async [actions.EXPORT_ACCOUNTS]({commit, dispatch, state}, accountIds) {

0 commit comments

Comments
 (0)