fix(google-cloud): Minor cleanup to prevent Google Cloud packages from being added unnecessarily
This commit is contained in:
1 parent
9486522552
commit
46828dc5ce
31 files changed
+48
-45
No files matched your search
+31
@@ -0,0 +1,31 @@
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
|
||||
const DICOM_FILE_UPLOADER_ID = 'gcp-dicom-uploader';
|
||||
const EVENT_NAME = 'onClose';
|
||||
|
||||
Template.uploadStudiesDialog.onRendered(() => {
|
||||
const instance = Template.instance();
|
||||
instance.$('#' + DICOM_FILE_UPLOADER_ID).on(EVENT_NAME, (event, data) => {
|
||||
instance
|
||||
.$('.modal')
|
||||
.one('hidden.bs.modal', event => {
|
||||
instance.data.promiseResolve(data);
|
||||
})
|
||||
.modal('hide');
|
||||
});
|
||||
});
|
||||
|
||||
Template.uploadStudiesDialog.helpers({
|
||||
dicomFilesUploaderId() {
|
||||
return DICOM_FILE_UPLOADER_ID;
|
||||
},
|
||||
eventName() {
|
||||
return EVENT_NAME;
|
||||
},
|
||||
oidcStorageKey() {
|
||||
return OHIF.user.getOidcStorageKey();
|
||||
},
|
||||
url() {
|
||||
return OHIF.gcloud.getConfig().qidoRoot; // FIXME: not QIDO
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user