diff --git a/src/App.vue b/src/App.vue index 3485155..cf0c495 100644 --- a/src/App.vue +++ b/src/App.vue @@ -161,6 +161,14 @@ button { background-color: $btn-background-hover-color; color: $btn-text-hover-color; } + + &[disabled], + &[disabled]:hover { + background-color: #ddd; + box-shadow: none; + color: #999; + cursor: initial; + } } .btn.secondary { diff --git a/src/views/ProfileForm.vue b/src/views/ProfileForm.vue index b2027bb..af3092b 100644 --- a/src/views/ProfileForm.vue +++ b/src/views/ProfileForm.vue @@ -73,7 +73,9 @@ Add new item - + @@ -204,6 +206,13 @@ export default class ProfileForm extends Vue { this.form.fields_attributes.push({ name: "", value: "", value_source: "" }) } + isFormValid(): boolean { + if (this.form.display_name && this.form.display_name.length > 75) { + return false + } + return true + } + async save() { const authToken = this.store.ensureAuthToken() const profile = await updateProfile(authToken, this.form) @@ -307,4 +316,8 @@ export default class ProfileForm extends Vue { filter: $link-hover-colorizer; } } + +.btn[type="submit"] { + margin-bottom: $block-outer-padding; +}