new jobViewCtrl()
This controller is responsible for displaying the input, output, and error of a specific job. The user is able to copy the output and error of a job up to 5MB. They are also able to save the entire file to their local machines.
- Source:
Requires:
- module:$scope
- module:$log
- module:$timeout
- module:connectionService
- module:$routeParams
- module:$location
- module:$q
- module:preferencesManager
- module:notifierService
- module:jobService
- module:dbService
Methods
(static) copyToClipboard(fileType, $event)
Copies the contents of the displayed output or error to the system clipboard
- Source:
Parameters:
Name | Type | Description |
---|---|---|
fileType |
String
|
Used to grab either output or error from the textarea |
$event |
Object
|
Stops the copy event from traversing up the DOM |
(static) downloadRemoteFile(remotePath, localPath) → {Promise}
Used to download the file requested from the server, since only 5MB worth of data is displayed to the user.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
remotePath |
String
|
Denotes the path on the server to download the file from |
localPath |
String
|
Denotes the path where the user wants the file saved |
Returns:
- Type:
-
Promise
A promise denoting whether the file was downloaded from the server or not.
(static) saveFile(fileType, $event)
Saves the output or error to a file
- Source:
Parameters:
Name | Type | Description |
---|---|---|
fileType |
String
|
Denotes either the output or error to be Saved |
$event |
Event
|
Used to stop the save event from moving up the DOM |