mirror of
https://github.com/directus/directus.git
synced 2026-02-07 20:35:37 -05:00
Merge branch 'main' of github.com:directus/next into main
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user