diff options
author | Derick Montague <derick.montague@ibm.com> | 2020-01-24 00:45:57 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2020-01-31 02:06:25 +0300 |
commit | 09e45cd4f5e233d4ec75c086dd7ab912a2f79a41 (patch) | |
tree | 825a8c58830b45d5d6dc7d879f16efee575f5ce9 /src/views/AccessControl/LocalUserManagement/ModalUser.vue | |
parent | 4b0fc1dbb3f60a485d3ba7ec27d7654a8ea0d382 (diff) | |
download | webui-vue-09e45cd4f5e233d4ec75c086dd7ab912a2f79a41.tar.xz |
Change eslint rules to use vue recommended
Resubmitting after reverted–original commit here
https://gerrit.openbmc-project.xyz/c/openbmc/webui-vue/+/28763/7
- Ran npm run lint
- Resolved eslint issues
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: I2b8b9244acddd483d0a72f9a5d156a79de9869a0
Diffstat (limited to 'src/views/AccessControl/LocalUserManagement/ModalUser.vue')
-rw-r--r-- | src/views/AccessControl/LocalUserManagement/ModalUser.vue | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/views/AccessControl/LocalUserManagement/ModalUser.vue b/src/views/AccessControl/LocalUserManagement/ModalUser.vue index e3ceb7df..d156c3da 100644 --- a/src/views/AccessControl/LocalUserManagement/ModalUser.vue +++ b/src/views/AccessControl/LocalUserManagement/ModalUser.vue @@ -37,9 +37,9 @@ No special characters except underscore </b-form-text> <b-form-input + id="username" v-model="form.username" type="text" - id="username" aria-describedby="username-help-block" :state="getValidationState($v.form.username)" :disabled="!newUser && originalUsername === 'root'" @@ -78,9 +78,9 @@ Password must between 8 – 20 characters </b-form-text> <b-form-input + id="password" v-model="form.password" type="password" - id="password" aria-describedby="password-help-block" :state="getValidationState($v.form.password)" @input="$v.form.password.$touch()" @@ -103,9 +103,9 @@ label-for="password-confirmation" > <b-form-input + id="password-confirmation" v-model="form.passwordConfirmation" type="password" - id="password-confirmation" :state="getValidationState($v.form.passwordConfirmation)" @input="$v.form.passwordConfirmation.$touch()" /> @@ -147,8 +147,13 @@ import { import VuelidateMixin from '../../../components/Mixins/VuelidateMixin.js'; export default { - props: ['user'], mixins: [VuelidateMixin], + props: { + user: { + type: Object, + default: null + } + }, data() { return { privilegeTypes: ['Administrator', 'Operator', 'ReadOnly', 'NoAccess'], |