move promoCode.vue to pages/settings
This commit is contained in:
+5
@@ -68,8 +68,10 @@
|
||||
import axios from 'axios';
|
||||
import { mapState } from '@/libs/store';
|
||||
import notifications from '@/mixins/notifications';
|
||||
import SaveCancelButtons from '@/pages/settings/components/saveCancelButtons.vue';
|
||||
|
||||
export default {
|
||||
components: { SaveCancelButtons },
|
||||
mixins: [notifications],
|
||||
data () {
|
||||
return {
|
||||
@@ -82,6 +84,9 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
...mapState({ user: 'user.data', credentials: 'credentials' }),
|
||||
canCreateCoupons () {
|
||||
return this.user.permissions.coupons || true;
|
||||
},
|
||||
getCodesUrl () {
|
||||
if (!this.user) return '';
|
||||
return '/api/v4/coupons';
|
||||
@@ -16,7 +16,7 @@ const Transactions = () => import(/* webpackChunkName: "settings" */'@/pages/set
|
||||
const SiteData = () => import(/* webpackChunkName: "settings" */'@/pages/settings/siteData.vue');
|
||||
|
||||
// not converted yet
|
||||
const PromoCode = () => import(/* webpackChunkName: "settings" */'@/components/settings/promoCode');
|
||||
const PromoCode = () => import(/* webpackChunkName: "settings" */'@/pages/settings/promoCode.vue');
|
||||
const Subscription = () => import(/* webpackChunkName: "settings" */'@/components/settings/subscription');
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user