mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-29 03:10:51 +00:00
upload request prototype UI
This commit is contained in:
+7
-2
@@ -288,6 +288,7 @@ const FunctionHelpers = {
|
||||
return store.getters.currentFolder.data.attributes.name
|
||||
} else {
|
||||
return {
|
||||
RequestUpload: this.$t('Home'),
|
||||
RecentUploads: this.$t('Recent Uploads'),
|
||||
MySharedItems: this.$t('sidebar.my_shared'),
|
||||
Trash: this.$t('Trash'),
|
||||
@@ -340,8 +341,12 @@ const FunctionHelpers = {
|
||||
Vue.prototype.$getPaymentLogo = function (driver) {
|
||||
return (
|
||||
{
|
||||
paypal: store.getters.isDarkMode ? '/assets/payments/paypal-dark.svg' : '/assets/payments/paypal.svg',
|
||||
paystack: store.getters.isDarkMode ? '/assets/payments/paystack-dark.svg' : '/assets/payments/paystack.svg',
|
||||
paypal: store.getters.isDarkMode
|
||||
? '/assets/payments/paypal-dark.svg'
|
||||
: '/assets/payments/paypal.svg',
|
||||
paystack: store.getters.isDarkMode
|
||||
? '/assets/payments/paystack-dark.svg'
|
||||
: '/assets/payments/paystack.svg',
|
||||
stripe: '/assets/payments/stripe.svg',
|
||||
system: this.$getImage(store.getters.config.app_logo_horizontal),
|
||||
}[driver] || this.$getImage(store.getters.config.app_logo_horizontal)
|
||||
|
||||
Vendored
+10
-3
@@ -53,7 +53,10 @@ const itemHelpers = {
|
||||
|
||||
// Download single item
|
||||
if (item && item.data.type !== 'folder') {
|
||||
Vue.prototype.$downloadFile(item.data.attributes.file_url, item.data.attributes.name + '.' + item.data.attributes.mimetype)
|
||||
Vue.prototype.$downloadFile(
|
||||
item.data.attributes.file_url,
|
||||
item.data.attributes.name + '.' + item.data.attributes.mimetype
|
||||
)
|
||||
|
||||
return
|
||||
}
|
||||
@@ -69,7 +72,9 @@ const itemHelpers = {
|
||||
Vue.prototype.$dissolveTeamFolder = function (folder) {
|
||||
events.$emit('confirm:open', {
|
||||
title: i18n.t('Are you sure you want to dissolve this team?'),
|
||||
message: i18n.t('All team members will lose access to your files and existing folder will be moved into your "Files" section.'),
|
||||
message: i18n.t(
|
||||
'All team members will lose access to your files and existing folder will be moved into your "Files" section.'
|
||||
),
|
||||
action: {
|
||||
id: folder.data.id,
|
||||
operation: 'dissolve-team-folder',
|
||||
@@ -80,7 +85,9 @@ const itemHelpers = {
|
||||
Vue.prototype.$detachMeFromTeamFolder = function (folder) {
|
||||
events.$emit('confirm:open', {
|
||||
title: i18n.t('Are you sure you want to leave this team folder?'),
|
||||
message: i18n.t("You will don't have access to the files and all your previously uploaded content will be part of this Team Folder you are leaving."),
|
||||
message: i18n.t(
|
||||
"You will don't have access to the files and all your previously uploaded content will be part of this Team Folder you are leaving."
|
||||
),
|
||||
action: {
|
||||
id: folder.data.id,
|
||||
operation: 'leave-team-folder',
|
||||
|
||||
Reference in New Issue
Block a user