File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments