make "create an account" link disabled when user registration is disabled in config

This commit is contained in:
MaysWind
2020-10-27 22:38:58 +08:00
parent f483838a25
commit 0c7391b85d
7 changed files with 80 additions and 7 deletions
+3
View File
@@ -31,6 +31,8 @@ Vue.prototype.$setLanguage = function (locale) {
document.querySelector('html').setAttribute('lang', locale);
return locale;
};
Vue.prototype.$isUserRegistrationEnabled = settings.isUserRegistrationEnabled;
Vue.prototype.$alert = function (message, confirmCallback) {
let parameters = {};
@@ -84,6 +86,7 @@ Vue.prototype.$toast = function (message, timeout) {
closeTimeout: timeout || 1500
}).open();
};
Vue.prototype.$services = services;
Vue.prototype.$user = userstate;