unclean SPARC
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
class SubmissionFormConcurrencyDialog extends EICDialogContent {
|
||||
actions = [
|
||||
{
|
||||
label: 'cancel',
|
||||
onclick: this.cancel.bind(this),
|
||||
severity: 'secondary',
|
||||
role: 'cancel'
|
||||
},
|
||||
{
|
||||
label: 'Open in read-only mode (safe)',
|
||||
onclick: this.continue.bind(this),
|
||||
severity: 'primary',
|
||||
role: 'save'
|
||||
}
|
||||
]
|
||||
|
||||
DOMContentLoaded(options) {
|
||||
this.find('.contributor').innerHTML =
|
||||
options.contributor.uid == app.User.identity.uuid ?
|
||||
'you':
|
||||
`${options.contributor.firstname} ${options.contributor.lastname}`;
|
||||
}
|
||||
|
||||
continue() { this.commit(true); }
|
||||
}
|
||||
|
||||
app.registerClass('SubmissionFormConcurrencyDialog', SubmissionFormConcurrencyDialog);
|
||||
Reference in New Issue
Block a user