mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
- Frontend restriction alerts
This commit is contained in:
37
resources/js/helpers/AlertHelpers.js
vendored
Normal file
37
resources/js/helpers/AlertHelpers.js
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import {events} from "../bus";
|
||||
import i18n from "../i18n";
|
||||
|
||||
const AlertHelpers = {
|
||||
install(Vue) {
|
||||
|
||||
Vue.prototype.$temporarilyDisabledUpload = function () {
|
||||
events.$emit('alert:open', {
|
||||
title: i18n.t('Upload is temporarily disabled'),
|
||||
message: i18n.t('Please review your billing settings.')
|
||||
})
|
||||
}
|
||||
|
||||
Vue.prototype.$temporarilyDisabledFolderCreate = function () {
|
||||
events.$emit('alert:open', {
|
||||
title: i18n.t('Folder creation is temporarily disabled'),
|
||||
message: i18n.t('Please review your billing settings.')
|
||||
})
|
||||
}
|
||||
|
||||
Vue.prototype.$temporarilyDisabledDownload = function () {
|
||||
events.$emit('alert:open', {
|
||||
title: i18n.t('File download is temporarily disabled'),
|
||||
message: i18n.t('Please review your billing settings.')
|
||||
})
|
||||
}
|
||||
|
||||
Vue.prototype.$isSomethingWrong = function () {
|
||||
events.$emit('alert:open', {
|
||||
title: i18n.t('popup_error.title'),
|
||||
message: i18n.t('popup_error.message')
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default AlertHelpers
|
||||
Reference in New Issue
Block a user