Skip to content

Commit

Permalink
Upload Bundle Progress #44
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasar icli committed Apr 7, 2016
1 parent 84b04f8 commit b4cbe3c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imports/api/applications/applications.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ Applications.attachSchema(new SimpleSchema({
type: 'fileUpload',
collection: 'bundles',
label: 'Choose application bundle file',
removeFileBtnTemplate: 'bundleRemoveFileBtn'
removeFileBtnTemplate: 'bundleRemoveFileBtn',
uploadProgressTemplate: 'uploadBundlesProgressTemplate'
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions imports/ui/components/applications/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,14 @@
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}

.progress {
background-color: #f1f1f1;
.width {
height: 100%;
background-color: #564aa3;
}
}
}

.membersModal {
Expand Down
6 changes: 6 additions & 0 deletions imports/ui/components/applications/templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -357,3 +357,9 @@
{{ _ 'remove' }}
</button>
</template>

<template name="uploadBundlesProgressTemplate">
<div class="progress">
<div class="width" style="width: {{ uploadProgress }}%"></div>
</div>
</template>

0 comments on commit b4cbe3c

Please sign in to comment.