mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 13:18:15 +00:00
[Code Style] Use prototypes in persistence queue
WTD-1482
This commit is contained in:
@ -33,25 +33,25 @@ define(
|
||||
* @memberof platform/persistence/queue
|
||||
*/
|
||||
function PersistenceFailureController() {
|
||||
return {
|
||||
/**
|
||||
* Format a timestamp for display in the dialog.
|
||||
* @memberof platform/persistence/queue.PersistenceFailureController#
|
||||
*/
|
||||
formatTimestamp: function (timestamp) {
|
||||
return moment.utc(timestamp)
|
||||
.format(Constants.TIMESTAMP_FORMAT);
|
||||
},
|
||||
/**
|
||||
* Format a user name for display in the dialog.
|
||||
* @memberof platform/persistence/queue.PersistenceFailureController#
|
||||
*/
|
||||
formatUsername: function (username) {
|
||||
return username || Constants.UNKNOWN_USER;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Format a timestamp for display in the dialog.
|
||||
* @memberof platform/persistence/queue.PersistenceFailureController#
|
||||
*/
|
||||
PersistenceFailureController.prototype.formatTimestamp = function (timestamp) {
|
||||
return moment.utc(timestamp)
|
||||
.format(Constants.TIMESTAMP_FORMAT);
|
||||
};
|
||||
|
||||
/**
|
||||
* Format a user name for display in the dialog.
|
||||
* @memberof platform/persistence/queue.PersistenceFailureController#
|
||||
*/
|
||||
PersistenceFailureController.prototype.formatUsername = function (username) {
|
||||
return username || Constants.UNKNOWN_USER;
|
||||
};
|
||||
|
||||
return PersistenceFailureController;
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user