diff --git a/interface.html b/interface.html index 81647a2..439f3f8 100644 --- a/interface.html +++ b/interface.html @@ -1872,10 +1872,13 @@

App submission status

Completed
\{{#if fileUrl}}
Download file
\{{/if}} + \{{#if isAdmin}} \{{#if debugFileUrl}}
Admin Download debug app
\{{else}} -
Admin Debug app not available
\{{/if}} +
Admin Debug app not available
+ \{{/if}} + \{{/if}} \{{#if updatedAt}} Finished on: \{{updatedAt}}\{{/if}} @@ -1887,10 +1890,13 @@

App submission status

\{{testingStatus}}
\{{#if fileUrl}}
Download file
\{{/if}} + \{{#if isAdmin}} \{{#if debugFileUrl}}
Admin Download debug app
\{{else}} -
Admin Debug app not available
\{{/if}} +
Admin Debug app not available
+ \{{/if}} + \{{/if}} \{{#if updatedAt}} Ready on: \{{updatedAt}}\{{/if}} @@ -1927,7 +1933,7 @@

App submission status

\{{#if updatedAt}} Finished on: \{{updatedAt}}\{{/if}}
\{{{message}}}
- \{{/if}} + \{{/if}} \{{#if cancelled}}
Canceled
diff --git a/js/interface.js b/js/interface.js index bc3a8fe..cdcbce2 100644 --- a/js/interface.js +++ b/js/interface.js @@ -2155,8 +2155,9 @@ function checkSubmissionStatus(origin, iosSubmissions) { if (submission.result.message) { build.message = submission.result.message; - - const gracefullyFailedMessage = "The app has been uploaded to the App Store Connect but could not be submitted for review. Please log in on https://appstoreconnect.apple.com/ to finish up the process and submit the app for review."; + + const gracefullyFailedMessage = 'The app has been uploaded to the App Store Connect but could not be submitted for review. Please log in on https://appstoreconnect.apple.com/ to finish up the process and submit the app for review.'; + if (submission.result.message === gracefullyFailedMessage) { submission.status = 'gracefullyFailed'; } @@ -2169,6 +2170,8 @@ function checkSubmissionStatus(origin, iosSubmissions) { } if (userInfo && userInfo.user && (userInfo.user.isAdmin || userInfo.user.isImpersonating)) { + build.isAdmin = userInfo.user.isAdmin || userInfo.user.isImpersonating; + console.log('build.isAdmin', build.isAdmin); build.debugFileUrl = debugHtmlPage ? removeAuthTokenFromFileUrl(debugHtmlPage.url) : ''; }