More S3 code.

Thanks to xet7 !

Related #142
This commit is contained in:
Lauri Ojansivu 2022-12-26 05:45:32 +02:00
parent 028633b00a
commit fb6f618917
5 changed files with 37 additions and 0 deletions

View file

@ -102,6 +102,12 @@ template(name="attachmentActionsPopup")
i.fa.fa-arrow-right
| {{_ 'attachment-move-storage-gridfs'}}
if $neq versions.original.storage "s3"
if versions.original.storage
a.js-move-storage-s3
i.fa.fa-arrow-right
| {{_ 'attachment-move-storage-s3'}}
template(name="attachmentRenamePopup")
input.js-edit-attachment-name(type='text' autofocus value="{{getNameWithoutExtension}}" dir="auto")
.edit-controls.clearfix

View file

@ -191,6 +191,10 @@ BlazeComponent.extendComponent({
Meteor.call('moveAttachmentToStorage', this.data()._id, "gridfs");
Popup.back();
},
'click .js-move-storage-s3'() {
Meteor.call('moveAttachmentToStorage', this.data()._id, "s3");
Popup.back();
},
}
]
}