Skip to content

Commit d9c11c2

Browse files
committed
Removed the unnecessary @enabled pass through variable
1 parent f2f95af commit d9c11c2

File tree

1 file changed

+1
-3
lines changed
  • app/preprints/-components/submit/file/upload-file

1 file changed

+1
-3
lines changed

app/preprints/-components/submit/file/upload-file/component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ interface PreprintUploadArgs {
1616
preprint: PreprintModel;
1717
allowVersioning: boolean;
1818
isEdit: boolean;
19-
enable: boolean;
2019
validate: (_: FileModel) => {};
2120
clickableElementId: string;
2221
dragEnter: () => {};
@@ -31,12 +30,11 @@ export default class PreprintUpload extends Component<PreprintUploadArgs> {
3130
rootFolder?: FileModel;
3231
primaryFile: FileModel | undefined;
3332
@tracked isUploadFileDisplayed = false;
34-
@tracked isEnabled = this.args.enable;
33+
@tracked isEnabled = false;
3534

3635
constructor(owner: unknown, args: any) {
3736
super(owner, args);
3837

39-
this.isEnabled = false;
4038
taskFor(this.prepUrl).perform();
4139
}
4240

0 commit comments

Comments
 (0)