-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document download and delete #16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great. works great.
alt="document header" | ||
src="@/assets/images/bcboxy.png" | ||
class="document-image" | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would try moving this to the #content template. i believe it'll make aligning the whole thing easier.
</script> | ||
|
||
<template> | ||
<Card class="pt-2 pb-1 text-center"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fyi, you can combine top and bottom padding using class py-1
.
i think youre ok to remove these as they may mess with the grid layout.
class="hover-hand hover-shadow" | ||
@click="documentService.downloadDocument(document.documentId)" | ||
@document:deleted=" | ||
(documentId) => (documents = documents.filter((x: Document) => x.documentId !== documentId)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty cool.
i thought you would have to remove the element from documents
but i guess filtering works.
i did test this thoroughly in the browser and it all looks great
</template> | ||
|
||
<style lang="scss"> | ||
.document-image { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when it comes to showing the file type icon (eg: document, image, pdf or whatever) i dont think this layout will really work.. but we'll see.
Description
Implements document download and delete functionality.
Cleans up the Files tab a bit - made things a bit larger, removed the border surrounding the whole thing, added hover effects
Types of changes
Checklist
Further comments