Skip to content
Snippets Groups Projects
Commit 9d9948ff authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #12091 TIME 0:30 refactor new attachment version button disabled condition

parent bb1fa936
No related branches found
No related tags found
Loading
......@@ -357,15 +357,8 @@ export class AttachmentPageComponent implements OnInit {
if (this.functions.empty(this.appAttachmentViewer)) {
return false;
}
if (this.appAttachmentViewer.editor.async) {
return this.appAttachmentViewer.isEditingTemplate();
}
if (this.appAttachmentViewer.isEditingTemplate()) {
return this.appAttachmentViewer.isEditorLoaded()
}
return false;
return this.appAttachmentViewer.isEditorLoaded();
}
closeModal() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment