27 lines
812 B
JavaScript
27 lines
812 B
JavaScript
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); |