Fix #141 : Convert InputField value to string

This commit is contained in:
Bubka 2022-11-25 13:13:19 +01:00
parent 312ad46fd6
commit 67068b5ccd

View File

@ -20,11 +20,11 @@ Vue.mixin({
else { else {
await this.axios.get('/user/logout') await this.axios.get('/user/logout')
this.$storage.clear() this.$storage.clear()
this.$router.push({ name: 'login', params: {forceRefresh: true} }) this.$router.push({ name: 'login', params: { forceRefresh: true } })
} }
}, },
exitSettings: function(event) { exitSettings: function (event) {
if (event) { if (event) {
this.$notify({ clean: true }) this.$notify({ clean: true })
this.$router.push({ name: 'accounts' }) this.$router.push({ name: 'accounts' })
@ -41,7 +41,7 @@ Vue.mixin({
openInBrowser(uri) { openInBrowser(uri) {
const a = document.createElement('a') const a = document.createElement('a')
a.setAttribute('href', uri) a.setAttribute('href', uri)
a.dispatchEvent(new MouseEvent("click", {'view': window, 'bubbles': true, 'cancelable': true})) a.dispatchEvent(new MouseEvent("click", { 'view': window, 'bubbles': true, 'cancelable': true }))
}, },
/** /**
@ -93,8 +93,7 @@ Vue.mixin({
] ]
.filter((key) => credentials.response[key] !== undefined) .filter((key) => credentials.response[key] !== undefined)
.forEach((key) => { .forEach((key) => {
if( credentials.response[key] === null ) if (credentials.response[key] === null) {
{
parseCredentials.response[key] = null parseCredentials.response[key] = null
} }
else { else {
@ -163,6 +162,7 @@ Vue.mixin({
*/ */
inputId(fieldType, fieldName) { inputId(fieldType, fieldName) {
let prefix let prefix
fieldName = fieldName.toString()
switch (fieldType) { switch (fieldType) {
case 'button': case 'button':