summaryrefslogtreecommitdiff
path: root/src/components/Global
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2020-10-30 19:32:06 +0300
committerYoshie Muranaka <yoshiemuranaka@gmail.com>2020-11-03 22:28:59 +0300
commitefd7c88404fc58d0dc8cd495ba2e33b9e9034e0b (patch)
treee205a290de55033a33c6a67ef9267d478e16a697 /src/components/Global
parent602e98aa32f82fd3b0c3d250c7cc1f8da971db24 (diff)
downloadwebui-vue-efd7c88404fc58d0dc8cd495ba2e33b9e9034e0b.tar.xz
Fix eslint no-prototype-builtins errors
Made updates to TableToolbar, ModalAddRoleGroup, and ModalUploadCertificate components. https://eslint.org/docs/rules/no-prototype-builtins Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ic143cd244b288bc089a9416699d7c3d4349a500c
Diffstat (limited to 'src/components/Global')
-rw-r--r--src/components/Global/TableToolbar.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/Global/TableToolbar.vue b/src/components/Global/TableToolbar.vue
index 6a856b44..cb6fa240 100644
--- a/src/components/Global/TableToolbar.vue
+++ b/src/components/Global/TableToolbar.vue
@@ -44,7 +44,8 @@ export default {
validator: (prop) => {
return prop.every((action) => {
return (
- action.hasOwnProperty('value') && action.hasOwnProperty('label')
+ Object.prototype.hasOwnProperty.call(action, 'value') &&
+ Object.prototype.hasOwnProperty.call(action, 'label')
);
});
},