Merge branch 'main' of github.com:directus/next into main

This commit is contained in:
rijkvanzanten
2020-09-01 17:14:12 -04:00
2 changed files with 19 additions and 2 deletions

View File

@@ -83,6 +83,16 @@
<v-icon name="tune" />
</v-button>
<v-button
rounded
icon
@click="downloadFile"
class="download"
v-tooltip.bottom="$t('download')"
>
<v-icon name="save_alt" />
</v-button>
<v-button
rounded
icon
@@ -314,6 +324,7 @@ export default defineComponent({
confirmLeave,
leaveTo,
discardAndLeave,
downloadFile,
moveToDialogActive,
moveToFolder,
moving,
@@ -378,6 +389,11 @@ export default defineComponent({
router.push(leaveTo.value);
}
function downloadFile() {
const filePath = getRootPath() + `assets/${props.primaryKey}`;
window.open(filePath, "_blank");
}
function useMovetoFolder() {
const moveToDialogActive = ref(false);
const moving = ref(false);
@@ -422,7 +438,8 @@ export default defineComponent({
}
.edit,
.folder {
.folder,
.download {
--v-button-background-color: var(--primary-25);
--v-button-color: var(--primary);
--v-button-background-color-hover: var(--primary-50);

View File

@@ -25,7 +25,7 @@ Directus is a real-time API and App dashboard for managing SQL database content.
This is *pre-release* software, therefore migrations will not be provided, breaking changes may occur at any time, and certain features might be missing or broken. You can follow along with [the issue tracker](https://github.com/directus/next/issues) for an in-depth list of upcoming enhancements, with the following notable features still under development:
- [ ] GraphQL Endpoint
- [ ] App Permissions
- [x] App Permissions
- [ ] MS SQL Support
- [ ] OracleDB Support
- [ ] Webhooks