diff --git a/src/_store/system.module.js b/src/_store/system.module.js index ebaf9ab..0016118 100644 --- a/src/_store/system.module.js +++ b/src/_store/system.module.js @@ -12,7 +12,8 @@ const state = { entityClasses: [], locales: ['en_US'], cloudConfigs: {}, - sslPort: null + sslPort: null, + promoCodePolicy: null }, entityConfigs: {}, searchResults: [], @@ -219,7 +220,9 @@ const getters = { icon: messages.label_menu_logout_icon }); return menu; - } + }, + promoCodesEnabled: function () { return state.promoCodePolicy === 'required' || state.promoCodePolicy === 'optional'; }, + promoCodeRequired: function () { return state.promoCodePolicy === 'required'; } }; const mutations = { diff --git a/src/auth/RegisterPage.vue b/src/auth/RegisterPage.vue index b6915ec..832968c 100644 --- a/src/auth/RegisterPage.vue +++ b/src/auth/RegisterPage.vue @@ -14,9 +14,14 @@
- +
{{ errors.first('email') }}
+
+ + +
{{ errors.first('promoCode') }}
+
@@ -35,7 +40,7 @@