remove create client button
This commit is contained in:
@@ -8,18 +8,7 @@
|
||||
)
|
||||
header-inputs
|
||||
.flex.ml-auto.items-center.gap-x-4
|
||||
base-button.add-btn(
|
||||
type="secondary",
|
||||
width="40px",
|
||||
no-padding,
|
||||
@click="openForm"
|
||||
)
|
||||
q-icon.add(name="app:add-person", size="24px")
|
||||
base-client-form-create(
|
||||
v-model="isOpenFormInternal",
|
||||
:set-updated-clients="setUpdatedClients",
|
||||
:write-created-client-id="writeCreatedClientId",
|
||||
)
|
||||
|
||||
q-btn(
|
||||
flat,
|
||||
dense,
|
||||
@@ -52,7 +41,6 @@ import chargePersonAvatar from "@/assets/images/charge-person-avatar.svg";
|
||||
import HeaderInputs from "./HeaderInputs.vue";
|
||||
import BaseAvatar from "@/components/base/BaseAvatar";
|
||||
import BasePopup from "@/components/base/BasePopup.vue";
|
||||
import BaseClientFormCreate from "@/components/base/BaseClientFormCreate";
|
||||
import BaseButton from "@/components/base/BaseButton.vue";
|
||||
import { fetchWrapper } from "@/shared/fetchWrapper";
|
||||
|
||||
@@ -62,7 +50,6 @@ export default {
|
||||
HeaderInputs,
|
||||
BaseAvatar,
|
||||
BasePopup,
|
||||
BaseClientFormCreate,
|
||||
BaseButton,
|
||||
},
|
||||
props: {
|
||||
|
||||
13
src/shared/utils/objectUtils.js
Normal file
13
src/shared/utils/objectUtils.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// TODO обход дочек
|
||||
export function keysCamelToSnake(obj) {
|
||||
let newObj = Object.entries(obj).reduce((acc, [key, val]) => {
|
||||
const modifiedKey = key.replace(/[A-Z]/g, (c) => {
|
||||
return "_" + c.toLowerCase();
|
||||
});
|
||||
return {
|
||||
...acc,
|
||||
...{ [modifiedKey]: val },
|
||||
};
|
||||
}, {});
|
||||
return newObj;
|
||||
}
|
||||
5
src/shared/utils/stringUtils.js
Normal file
5
src/shared/utils/stringUtils.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export function camelToSnake(str) {
|
||||
return str.replace(/[A-Z]/g, (c) => {
|
||||
return "_" + c.toLowerCase();
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user