-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Patrick Huang
committed
Jun 28, 2017
1 parent
c80db4c
commit a042cec
Showing
9 changed files
with
59 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 0 additions & 92 deletions
92
server/zanata-frontend/src/frontend/app/components/Modal/ProgressModal.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
server/zanata-frontend/src/frontend/app/utils/EnumValueUtils.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
export const processStatusCodes = [ | ||
'NotAccepted', 'Waiting', 'Running', 'Finished', 'Cancelled', 'Failed'] | ||
|
||
const isStatusCodeEnded = statusCode => { | ||
return statusCode === 'Finished' || statusCode === 'Cancelled' || | ||
statusCode === 'Failed' | ||
} | ||
/** | ||
* @param {{statusCode: string}} processStatus | ||
* @returns {boolean} whether a process status represents an ended process | ||
*/ | ||
export function isProcessEnded (processStatus) { | ||
return processStatus && isStatusCodeEnded(processStatus.statusCode) | ||
} | ||
|
||
export const entityStatuses = ['READONLY', 'ACTIVE', 'OBSOLETE'] | ||
export function isEntityStatusReadOnly (status) { | ||
return status === 'READONLY' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters